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....
Attachment:
pgpJJKk3iJKnc.pgp
Description: PGP signature
- References:
- [PATCH] CodingStyle: Printing numbers in parentheses is fine
- From: Jean Delvare <[email protected]>
- Re: [PATCH] CodingStyle: Printing numbers in parentheses is fine
- From: Andrew Morton <[email protected]>
- [PATCH] CodingStyle: Printing numbers in parentheses is fine
- Prev by Date: Re: [PATCH] 0/3 coding standards documentation/code updates
- Next by Date: Re: [PATCH] 0/3 coding standards documentation/code updates
- Previous by thread: Re: [PATCH] CodingStyle: Printing numbers in parentheses is fine
- Next by thread: Re: [PATCH] CodingStyle: Printing numbers in parentheses is fine
- Index(es):