From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Wolfgang Grandegger <wg@grandegger.com>,
Alexander Shiyan <shc_work@mail.ru>,
linux-can@vger.kernel.org
Cc: Christian Pellegrin <chripell@evolware.org>,
Chris Elston <celston@katalix.com>
Subject: Re: [PATCH 1/2] can: mcp251x: Move diagnostic messages to dev_dbg()
Date: Tue, 25 Feb 2014 21:41:23 +0100 [thread overview]
Message-ID: <530CFFF3.4030600@pengutronix.de> (raw)
In-Reply-To: <530A486B.3040005@grandegger.com>
[-- Attachment #1: Type: text/plain, Size: 1968 bytes --]
On 02/23/2014 08:13 PM, Wolfgang Grandegger wrote:
> On 02/22/2014 06:51 AM, Alexander Shiyan wrote:
>> This patch moves diagnostic messages used for debugging purposes
>> to dev_dbg().
>>
>> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
>> ---
>> drivers/net/can/mcp251x.c | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c
>> index cdb9808..56e38a6 100644
>> --- a/drivers/net/can/mcp251x.c
>> +++ b/drivers/net/can/mcp251x.c
>> @@ -601,10 +601,10 @@ static int mcp251x_do_set_bittiming(struct net_device *net)
>> (bt->prop_seg - 1));
>> mcp251x_write_bits(spi, CNF3, CNF3_PHSEG2_MASK,
>> (bt->phase_seg2 - 1));
>> - dev_info(&spi->dev, "CNF: 0x%02x 0x%02x 0x%02x\n",
>> - mcp251x_read_reg(spi, CNF1),
>> - mcp251x_read_reg(spi, CNF2),
>> - mcp251x_read_reg(spi, CNF3));
>> + dev_dbg(&spi->dev, "CNF: 0x%02x 0x%02x 0x%02x\n",
>> + mcp251x_read_reg(spi, CNF1),
>> + mcp251x_read_reg(spi, CNF2),
>> + mcp251x_read_reg(spi, CNF3));
>>
>> return 0;
>> }
>
> It's common practice to show the bit-timing settings in the kernel log.
> Therefore I prefer to keep this useful dev_info. If we change it, we
> should update all other drivers as well.
I'm not sure if the output is needed. The bit timing algorithm seems to
work so I think it's okay to make the driver more quiet.
>> @@ -1155,7 +1155,7 @@ static int mcp251x_can_probe(struct spi_device *spi)
>>
>
>> devm_can_led_init(net);
>>
>> - dev_info(&spi->dev, "probed\n");
>> + dev_dbg(&spi->dev, "probed\n");
>
> This one could even be removed.
+1
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]
next prev parent reply other threads:[~2014-02-25 20:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-22 5:51 [PATCH 1/2] can: mcp251x: Move diagnostic messages to dev_dbg() Alexander Shiyan
2014-02-22 5:51 ` [PATCH 2/2] can: mcp251x: Remove #ifdef CONFIG_PM_SLEEP Alexander Shiyan
2014-02-25 20:37 ` Marc Kleine-Budde
2014-02-23 19:13 ` [PATCH 1/2] can: mcp251x: Move diagnostic messages to dev_dbg() Wolfgang Grandegger
2014-02-25 20:41 ` Marc Kleine-Budde [this message]
2014-02-26 4:20 ` Alexander Shiyan
2014-02-26 8:23 ` Marc Kleine-Budde
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=530CFFF3.4030600@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=celston@katalix.com \
--cc=chripell@evolware.org \
--cc=linux-can@vger.kernel.org \
--cc=shc_work@mail.ru \
--cc=wg@grandegger.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;
as well as URLs for NNTP newsgroup(s).