Re: [PATCH v2] checkpatch: add warning for unnecessary use of %h[xudi] and %hh[xudi]

2020-11-26 Thread Joe Perches
On Thu, 2020-11-26 at 14:16 +0530, Dwaipayan Ray wrote: > Modifiers %h and %hh should never be used. > > Commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use > of unnecessary %h[xudi] and %hh[xudi]") specifies that: > > "Standard integer promotion is already done and %hx and %hhx is u

[PATCH v2] checkpatch: add warning for unnecessary use of %h[xudi] and %hh[xudi]

2020-11-26 Thread Dwaipayan Ray
Modifiers %h and %hh should never be used. Commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]") specifies that: "Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi]." "The