[PATCH v1 2/2] docs: printk-formats: Treat char as always unsigned

From: Andy Shevchenko
Date: Mon Jul 03 2023 - 10:58:51 EST


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 <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
Documentation/core-api/printk-formats.rst | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
index 2f3a6e0b3fc4..4451ef501936 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
--
2.40.0.1.gaa8946217a0b