From: Joe Perches <joe@perches.com>
To: Michal Simek <michal.simek@xilinx.com>
Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu,
wsa@the-dreams.de,
Kedareswara rao Appana <appana.durga.rao@xilinx.com>,
Jean Delvare <khali@linux-fr.org>,
Peter Korsgaard <jacmet@sunsite.dk>,
Kedareswara rao Appana <appanad@xilinx.com>,
linux-i2c@vger.kernel.org
Subject: Re: [PATCH v3 1/3] i2c: xilinx: Fix i2c checkpatch warnings
Date: Thu, 10 Oct 2013 07:01:23 -0700 [thread overview]
Message-ID: <1381413683.14017.9.camel@joe-AO722> (raw)
In-Reply-To: <f3fd6f38d2553e59b077edff1969f4d07f8aa811.1381401561.git.michal.simek@xilinx.com>
On Thu, 2013-10-10 at 12:39 +0200, Michal Simek wrote:
> Code changes to fix checkpatch warnings listed below.
> - WARNING: quoted string split across lines
[]
> diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
[]
> @@ -271,11 +271,8 @@ static void xiic_read_rx(struct xiic_i2c *i2c)
>
> bytes_in_fifo = xiic_getreg8(i2c, XIIC_RFO_REG_OFFSET) + 1;
>
> - dev_dbg(i2c->adap.dev.parent, "%s entry, bytes in fifo: %d, msg: %d"
> - ", SR: 0x%x, CR: 0x%x\n",
> - __func__, bytes_in_fifo, xiic_rx_space(i2c),
> - xiic_getreg8(i2c, XIIC_SR_REG_OFFSET),
> - xiic_getreg8(i2c, XIIC_CR_REG_OFFSET));
> + dev_dbg(i2c->adap.dev.parent, "%s entry, bytes in fifo: %d, msg: %d",
> + __func__, bytes_in_fifo, xiic_rx_space(i2c));
This is a pretty odd way of silencing checkpatch
by eliminating content. Aren't the register values
useful information?
You've also removed the terminating newline.
It's necessary to avoid possible dmesg output log
message interleaving. Please put it back.
A more normal style fix would be to coalesce the
format. checkpatch will ignore lines exceeding
80 columns for these formats.
dev_dbg(i2c->adap.dev.parent, "%s entry, bytes in fifo: %d, msg: %d, SR: 0x%x, CR: 0x%x\n",
__func__, bytes_in_fifo, xiic_rx_space(i2c),
xiic_getreg8(i2c, XIIC_SR_REG_OFFSET),
xiic_getreg8(i2c, XIIC_CR_REG_OFFSET));
This passes checkpatch cleanly.
etc...
prev parent reply other threads:[~2013-10-10 14:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 10:39 [PATCH v3 1/3] i2c: xilinx: Fix i2c checkpatch warnings Michal Simek
[not found] ` <f3fd6f38d2553e59b077edff1969f4d07f8aa811.1381401561.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2013-10-10 10:39 ` [PATCH v3 2/3] i2c: xilinx: Do not enable irq before irq handler Michal Simek
2013-10-10 10:39 ` [PATCH v3 3/3] i2c: xilinx: Use devm_* functions Michal Simek
[not found] ` <9691811c34ee339b1f5e3ed2acdea0796fc80788.1381401561.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2013-10-13 18:19 ` Wolfram Sang
2013-10-10 14:01 ` Joe Perches [this message]
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=1381413683.14017.9.camel@joe-AO722 \
--to=joe@perches.com \
--cc=appana.durga.rao@xilinx.com \
--cc=appanad@xilinx.com \
--cc=jacmet@sunsite.dk \
--cc=khali@linux-fr.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=monstr@monstr.eu \
--cc=wsa@the-dreams.de \
/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;
as well as URLs for NNTP newsgroup(s).