Thread (7 messages) 7 messages, 4 authors, 2021-10-14

Re: Use of '%#02x' is almost always wrong

From: Dan Carpenter <hidden>
Date: 2021-10-13 10:39:35
Also in: lkml

On Wed, Oct 13, 2021 at 01:17:30AM -0700, Joe Perches wrote:
On Wed, 2021-10-13 at 09:15 +0300, Dan Carpenter wrote:
quoted
On Sun, Oct 10, 2021 at 09:45:30AM -0700, Joe Perches wrote:
quoted
Perhaps too many developers do not know that using '%#<width>x'
in printf output _includes_ the 0x prefix in the output width.
This is a good point.  Presumably you're going to add it to checkpatch.pl?
Yeah.  Something like the below:
Awesome!  Thanks!

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help