From: Joe Perches <joe@perches.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: dev: Convert printks to pr_<level>
Date: Wed, 01 Feb 2012 11:40:29 -0800 [thread overview]
Message-ID: <1328125229.18641.17.camel@joe2Laptop> (raw)
In-Reply-To: <20120201.142156.871464551711177387.davem@davemloft.net>
On Wed, 2012-02-01 at 14:21 -0500, David Miller wrote:
> From: Joe Perches <joe@perches.com>
> Date: Sun, 29 Jan 2012 16:20:30 -0800
> > - pr_warning("Number of in use tx queues changed "
> > - "invalidating tc mappings. Priority "
> > - "traffic classification disabled!\n");
> > + pr_warn(
> > +"Number of in use tx queues changed invalidating tc mappings. "
> > +"Priority traffic classification disabled!\n");
> Don't do things like this. It is never correct to un-indent subsequent
> lines of a string like this. And a line ending in "pr_whatever(" looks
> terrible.
I don't care much one way or another about it.
There are a few different uses in that file already.
I do try to avoid having the compiler do string
coalescing. In this case, I thought it unlikely
that a person would grep with content from both
sentences though.
Coalesced, this format is:
"Number of in use tx queues changed invalidating tc mappings. Priority traffic classification disabled!\n"
105 chars. That's pretty long.
Do you prefer coalesced formats in all cases?
pr_warn("Number of in use tx queues changed invalidating tc mappings. Priority traffic classification disabled!\n");
next prev parent reply other threads:[~2012-02-01 19:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-29 22:56 [PATCH net-next] drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages Joe Perches
2012-01-29 23:47 ` [PATCH net-next] drivers/net: Remove alloc_etherdev error messages Joe Perches
2012-01-30 0:20 ` [PATCH net-next] net: dev: Convert printks to pr_<level> Joe Perches
2012-02-01 19:21 ` David Miller
2012-02-01 19:40 ` Joe Perches [this message]
2012-02-01 19:43 ` David Miller
2012-02-01 20:54 ` PATCH V2 " Joe Perches
2012-02-01 20:57 ` David Miller
2012-01-31 21:41 ` [PATCH net-next] drivers/net: Remove alloc_etherdev error messages David Miller
2012-01-31 21:41 ` [PATCH net-next] drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages David Miller
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=1328125229.18641.17.camel@joe2Laptop \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.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