We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e00123 + 243e212 commit b355362Copy full SHA for b355362
Documentation/core-api/printk-formats.rst
@@ -15,9 +15,10 @@ Integer types
15
16
If variable is of Type, use printk format specifier:
17
------------------------------------------------------------
18
- char %d or %x
+ signed char %d or %hhx
19
unsigned char %u or %x
20
- short int %d or %x
+ char %u or %x
21
+ short int %d or %hx
22
unsigned short int %u or %x
23
int %d or %x
24
unsigned int %u or %x
@@ -27,9 +28,9 @@ Integer types
27
28
unsigned long long %llu or %llx
29
size_t %zu or %zx
30
ssize_t %zd or %zx
- s8 %d or %x
31
+ s8 %d or %hhx
32
u8 %u or %x
- s16 %d or %x
33
+ s16 %d or %hx
34
u16 %u or %x
35
s32 %d or %x
36
u32 %u or %x
0 commit comments