Skip to content

Commit b355362

Browse files
committed
Merge branch 'for-6.6-vsprintf-doc' into for-linus
2 parents 3e00123 + 243e212 commit b355362

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/core-api/printk-formats.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ Integer types
1515

1616
If variable is of Type, use printk format specifier:
1717
------------------------------------------------------------
18-
char %d or %x
18+
signed char %d or %hhx
1919
unsigned char %u or %x
20-
short int %d or %x
20+
char %u or %x
21+
short int %d or %hx
2122
unsigned short int %u or %x
2223
int %d or %x
2324
unsigned int %u or %x
@@ -27,9 +28,9 @@ Integer types
2728
unsigned long long %llu or %llx
2829
size_t %zu or %zx
2930
ssize_t %zd or %zx
30-
s8 %d or %x
31+
s8 %d or %hhx
3132
u8 %u or %x
32-
s16 %d or %x
33+
s16 %d or %hx
3334
u16 %u or %x
3435
s32 %d or %x
3536
u32 %u or %x

0 commit comments

Comments
 (0)