aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-07-03 17:58:39 +0300
committerPetr Mladek <[email protected]>2023-07-18 13:43:21 +0200
commit243e212ff82f6aaabc2793049571a199067738d3 (patch)
tree3e3f5fba08cdbf318bde9b1b4dc29466423dacc9
parent46d57a7a8e331ad402783a77d246c4196ba21863 (diff)
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: 3bc753c06dd0 ("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]
-rw-r--r--Documentation/core-api/printk-formats.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
index 956c87b3ba8b..0eed8a2dcae9 100644
--- a/Documentation/core-api/printk-formats.rst
+++ b/Documentation/core-api/printk-formats.rst
@@ -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