mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 12:26:11 +00:00
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: 3bc753c06d
("kbuild: treat char as always unsigned")
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-2-andriy.shevchenko@linux.intel.com
This commit is contained in:
parent
46d57a7a8e
commit
243e212ff8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue