[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17982.1191118736@turing-police.cc.vt.edu>
Date: Sat, 29 Sep 2007 22:18:56 -0400
From: Valdis.Kletnieks@...edu
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jean Delvare <khali@...ux-fr.org>,
LKML <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
David Brownell <david-b@...bell.net>
Subject: Re: [PATCH] CodingStyle: Printing numbers in parentheses is fine
On Sat, 29 Sep 2007 03:51:56 PDT, Andrew Morton said:
> Printing something like
>
> bytes remaining: 0x12 (18)
>
> is a quite logical thing to do, although pretty darm pointless.
On the other hand, printing this:
magic number: 0x2710
probably doesn't ring any bells, but if you changed that format to be
"magic number: %x (%d)",foo,foo
you'll almost certainly sit up and ask "Where the fsck did *that* come from?"
(unless you're a *lot* better at doing hex conversions in your head than I).
Yeah, *usually* pointless, but it has its place sometimes....
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists