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 <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
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)