Skip to content

Commit 243e212

Browse files
andy-shevpmladek
authored andcommitted
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: 3bc753c ("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
1 parent 46d57a7 commit 243e212

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/core-api/printk-formats.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ Integer types
1515

1616
If variable is of Type, use printk format specifier:
1717
------------------------------------------------------------
18-
char %d or %hhx
18+
signed char %d or %hhx
1919
unsigned char %u or %x
20+
char %u or %x
2021
short int %d or %hx
2122
unsigned short int %u or %x
2223
int %d or %x

0 commit comments

Comments
 (0)