diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-07-03 17:58:38 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2023-07-18 13:43:21 +0200 |
commit | 46d57a7a8e331ad402783a77d246c4196ba21863 (patch) | |
tree | c5095d6ec8c06ccea9bb785af41006c51f72f60f /scripts/gdb/linux/modules.py | |
parent | 7ec85f3e089aa423a69559bf4555b6218b5a2ef7 (diff) |
docs: printk-formats: Fix hex printing of signed values
The commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of
unnecessary %h[xudi] and %hh[xudi]") obviously missed the point of sign
promotion for the signed values lesser than int. In such case %x prints
not the same as %h[h]x. Restore back those specifiers for the signed hex
cases.
Fixes: cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230703145839.14248-1-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions