Commit 243e212f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Petr Mladek

docs: printk-formats: Treat char as always unsigned

The Linux kernel switched to have char be equivalent to usigned char.
Reflect this in the printk specifiers.

Fixes: 3bc753c0 ("kbuild: treat char as always unsigned")
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230703145839.14248-2-andriy.shevchenko@linux.intel.com
parent 46d57a7a
......@@ -15,8 +15,9 @@ Integer types
If variable is of Type, use printk format specifier:
------------------------------------------------------------
char %d or %hhx
signed char %d or %hhx
unsigned char %u or %x
char %u or %x
short int %d or %hx
unsigned short int %u or %x
int %d or %x
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment