From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Simon Glass <sjg@chromium.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Samuel Ortiz <sameo@linux.intel.com>,
Che-Liang Chiou <clchiou@chromium.org>
Subject: Re: [PATCH v5 3/6] mfd: Add ChromeOS EC I2C driver
Date: Wed, 20 Feb 2013 10:48:02 -0800 [thread overview]
Message-ID: <20130220184802.GE15152@core.coreip.homeip.net> (raw)
In-Reply-To: <1361381079-26747-4-git-send-email-sjg@chromium.org>
On Wed, Feb 20, 2013 at 09:24:36AM -0800, Simon Glass wrote:
> +#ifdef DEBUG
> + dev_dbg(ec_dev->dev, "packet: ");
> + for (i = 0; i < i2c_msg[1].len; i++)
> + dev_cont(ec_dev->dev, " %02x", in_buf[i]);
> + dev_cont(ec_dev->dev, ", sum = %02x\n", sum);
There is "%ph" now so you can simply write:
dev_dbg(ec_dev->dev, "packet: %*ph, sum = %02x\n",
i2c_msg[1].len, in_buf[i], sum);
> +#endif
Thanks.
--
Dmitry
next prev parent reply other threads:[~2013-02-20 18:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-20 17:24 [PATCH v5 0/6] Add ChromeOS Embedded Controller support Simon Glass
2013-02-20 17:24 ` [PATCH v5 1/6] mfd: Add ChromeOS EC messages header Simon Glass
2013-02-20 17:24 ` [PATCH v5 2/6] mfd: Add ChromeOS EC implementation Simon Glass
2013-02-20 18:17 ` Dmitry Torokhov
2013-02-20 17:24 ` [PATCH v5 3/6] mfd: Add ChromeOS EC I2C driver Simon Glass
2013-02-20 18:48 ` Dmitry Torokhov [this message]
2013-02-20 17:24 ` [PATCH v5 4/6] mfd: Add ChromeOS EC SPI driver Simon Glass
2013-02-20 17:24 ` [PATCH v5 5/6] Input: matrix-keymap: Add function to read the new DT binding Simon Glass
2013-02-20 18:18 ` Dmitry Torokhov
2013-02-25 21:53 ` Simon Glass
2013-02-20 17:24 ` [PATCH v5 6/6] Input: Add ChromeOS EC keyboard driver Simon Glass
2013-02-20 18:21 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130220184802.GE15152@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=clchiou@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=sjg@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome