path: root/Documentation/kbuild/reproducible-builds.rst
diff options
authorJoe Perches <>2019-09-06 14:11:51 -0700
committerJonathan Corbet <>2019-09-14 01:57:43 -0600
commitcbacb5ab0aa04a49030e520523ef9405c9cafa95 (patch)
treed6510fd81b033ca31bc593247656c0617fd75a2f /Documentation/kbuild/reproducible-builds.rst
parent82f12ab311fd5ab46d25c9cc51784adf37f33ad5 (diff)
docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]
Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi]. As Linus said in: It's a pointless warning, making for more complex code, and making people remember esoteric printf format details that have no reason for existing. The "h" and "hh" things should never be used. The only reason for them being used if if you have an "int", but you want to print it out as a "char" (and honestly, that is a really bad reason, you'd be better off just using a proper cast to make the code more obvious). So if what you have a "char" (or unsigned char) you should always just print it out as an "int", knowing that the compiler already did the proper type conversion. Signed-off-by: Joe Perches <> Reviewed-by: Louis Taylor <> Signed-off-by: Jonathan Corbet <>
Diffstat (limited to 'Documentation/kbuild/reproducible-builds.rst')
0 files changed, 0 insertions, 0 deletions