login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
29
Re: [PATCH] CodingStyle: Printing numbers in parentheses is fine
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <randy.dunlap@...>
To: Andrew Morton <akpm@...>
Cc: Jean Delvare <khali@...>, LKML <linux-kernel@...>, Linus Torvalds <torvalds@...>, David Brownell <david-b@...>
Subject:
Re: [PATCH] CodingStyle: Printing numbers in parentheses is fine
Date: Saturday, September 29, 2007 - 2:29 pm
On Sat, 29 Sep 2007 03:51:56 -0700 Andrew Morton wrote:
quoted text
> On Sat, 29 Sep 2007 12:25:30 +0200 Jean Delvare <khali@linux-fr.org> wrote: > > > Remove a not particularly relevant rule from CodingStyle. > > Sometimes, printing numbers in parentheses doesn't add value, but in > > some (most?) cases it makes the message easier to read. As a matter of > > fact, this practice is widely used in the kernel: > > > > linux-2.6.23-rc8$ quilt grep -I '(%l*[du])' | wc -l > > 3166 > > linux-2.6.23-rc8$ > > > > Signed-off-by: Jean Delvare <khali@linux-fr.org> > > --- > > Documentation/CodingStyle | 2 -- > > 1 file changed, 2 deletions(-) > > > > --- linux-2.6.23-rc8.orig/Documentation/CodingStyle 2007-07-23 16:44:32.000000000 +0200 > > +++ linux-2.6.23-rc8/Documentation/CodingStyle 2007-09-28 23:53:23.000000000 +0200 > > @@ -638,8 +638,6 @@ concise, clear, and unambiguous. > > > > Kernel messages do not have to be terminated with a period. > > > > -Printing numbers in parentheses (%d) adds no value and should be avoided. > > - > > There are a number of driver model diagnostic macros in <linux/device.h> > > which you should use to make sure messages are matched to the right device > > and driver, and are tagged with the right level: dev_err(), dev_warn(), > > I wonder how that got there.
http://linux.bkbits.net:8080/linux-2.6/?PAGE=cset&REV=4034429a6JsOCMNXT3tTPAX1kX40bg
Let's kill it, please. (i.e., ACK) --- ~Randy -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] CodingStyle: Printing numbers in parentheses is fine
, Jean Delvare
, (Sat Sep 29, 6:25 am)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, Andrew Morton
, (Sat Sep 29, 6:51 am)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, Jean Delvare
, (Sun Sep 30, 6:11 am)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
,
, (Sat Sep 29, 10:18 pm)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, Randy Dunlap
, (Sat Sep 29, 2:29 pm)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, David Brownell
, (Sat Sep 29, 2:53 pm)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, Randy Dunlap
, (Sat Sep 29, 4:13 pm)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, David Brownell
, (Sat Sep 29, 6:30 pm)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, Jean Delvare
, (Sun Sep 30, 6:28 am)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, Randy Dunlap
, (Sat Sep 29, 6:51 pm)
Re: [PATCH] CodingStyle: Printing numbers in parentheses is ...
, David Brownell
, (Sat Sep 29, 1:19 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tejun Heo
[PATCH 2/5] sysfs: simplify sysfs_rename_dir()
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Mark Weber
hdparm standby timeout not working for WD raptors?
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Hugh Dickins
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
783 guests
online.
Online users
creativewebs279
Syndicate