From: Jean Delvare <khali@linux-fr.org>
To: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org, Greg KH <gregkh@suse.de>,
Jeff Garzik <jeff@garzik.org>, Tony Luck <tony.luck@intel.com>,
Jiri Slaby <jirislaby@gmail.com>,
Roland Dreier <rolandd@cisco.com>,
David Brownell <dbrownell@users.sourceforge.net>,
James Smart <james.smart@emulex.com>,
Hansjoerg Lipp <hjlipp@web.de>,
"Mark M. Hoffman" <mhoffman@lightlink.com>,
Jeremy Fitzhardinge <jeremy@xensource.com>
Subject: Re: [PATCH] Add missing newlines to some uses of dev_<level> messages
Date: Sat, 11 Aug 2007 09:23:42 +0200 [thread overview]
Message-ID: <20070811092342.53106dfb@hyperion.delvare> (raw)
In-Reply-To: <1186535381.11897.29.camel@localhost>
Hi Joe,
On Tue, 07 Aug 2007 18:09:39 -0700, Joe Perches wrote:
> Found these while looking at printk uses.
>
> Add missing newlines to dev_<level> uses
> Add missing KERN_<level> prefixes to multiline dev_<level>s
> Fixed a wierd->weird spelling typo
> Added a newline to a printk
Thanks for doing this.
> diff --git a/drivers/i2c/busses/i2c-pmcmsp.c b/drivers/i2c/busses/i2c-pmcmsp.c
> index 17cecf1..be99c02 100644
> --- a/drivers/i2c/busses/i2c-pmcmsp.c
> +++ b/drivers/i2c/busses/i2c-pmcmsp.c
> @@ -591,18 +591,18 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap,
> if (msg->flags & I2C_M_TEN)
> pmcmsptwi_set_twi_config(&oldcfg, data);
>
> - dev_dbg(&adap->dev, "I2C %s of %d bytes ",
> - (msg->flags & I2C_M_RD) ? "read" : "write", msg->len);
> + dev_dbg(&adap->dev, "I2C %s of %d bytes %s\n",
> + (msg->flags & I2C_M_RD) ? "read" : "write", msg->len,
> + (ret == MSP_TWI_XFER_OK) ? "succeeded" : "failed");
> +
> if (ret != MSP_TWI_XFER_OK) {
> /*
> * TODO: We could potentially loop and retry in the case
> * of MSP_TWI_XFER_TIMEOUT.
> */
> - dev_dbg(&adap->dev, "failed\n");
> return -1;
> }
>
> - dev_dbg(&adap->dev, "succeeded\n");
> return 0;
> }
>
> diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c
> index 17376fe..f8d0dff 100644
> --- a/drivers/i2c/busses/i2c-pnx.c
> +++ b/drivers/i2c/busses/i2c-pnx.c
> @@ -575,7 +575,7 @@ static int __devinit i2c_pnx_probe(struct platform_device *pdev)
> else {
> freq_mhz = PNX_DEFAULT_FREQ;
> dev_info(&pdev->dev, "Setting bus frequency to default value: "
> - "%d MHz", freq_mhz);
> + "%d MHz\n", freq_mhz);
> }
>
> i2c_pnx->adapter->algo = &pnx_algorithm;
> diff --git a/drivers/i2c/chips/menelaus.c b/drivers/i2c/chips/menelaus.c
> index 48a7e2f..76d4eda 100644
> --- a/drivers/i2c/chips/menelaus.c
> +++ b/drivers/i2c/chips/menelaus.c
> @@ -1198,7 +1198,7 @@ static int menelaus_probe(struct i2c_client *client)
> err = request_irq(client->irq, menelaus_irq, IRQF_DISABLED,
> DRIVER_NAME, menelaus);
> if (err) {
> - dev_dbg(&client->dev, "can't get IRQ %d, err %d",
> + dev_dbg(&client->dev, "can't get IRQ %d, err %d\n",
> client->irq, err);
> goto fail1;
> }
drivers/i2c parts reviewed and
Acked-by: Jean Delvare <khali@linux-fr.org>
Note that there are 3 more messages to fix in
drivers/i2c/chips/menelaus.c (3 calls to pr_err.)
--
Jean Delvare
next prev parent reply other threads:[~2007-08-11 7:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 1:09 [PATCH] Add missing newlines to some uses of dev_<level> messages Joe Perches
2007-08-08 1:34 ` James Smart
2007-08-08 2:01 ` Jeff Garzik
2007-08-08 3:00 ` Nish Aravamudan
2007-08-10 20:34 ` Jean Delvare
2007-08-09 2:52 ` Mark M. Hoffman
2007-08-09 6:30 ` David Brownell
2007-08-09 6:33 ` Jiri Slaby
2007-08-11 7:23 ` Jean Delvare [this message]
2007-08-11 19:31 ` David Brownell
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=20070811092342.53106dfb@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=dbrownell@users.sourceforge.net \
--cc=gregkh@suse.de \
--cc=hjlipp@web.de \
--cc=james.smart@emulex.com \
--cc=jeff@garzik.org \
--cc=jeremy@xensource.com \
--cc=jirislaby@gmail.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhoffman@lightlink.com \
--cc=rolandd@cisco.com \
--cc=tony.luck@intel.com \
/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