]> Git Repo - linux.git/commitdiff
printk/docs: Add extra integer types to printk-formats
authorLouis Taylor <[email protected]>
Sun, 3 Mar 2019 12:36:47 +0000 (12:36 +0000)
committerPetr Mladek <[email protected]>
Mon, 4 Mar 2019 15:39:08 +0000 (16:39 +0100)
A few commonly used integer types were absent from this table, so add
them.

Link: https://github.com/ClangBuiltLinux/linux/issues/378
Suggested-by: Nick Desaulniers <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Louis Taylor <[email protected]>
Signed-off-by: Louis Taylor <[email protected]>
[[email protected]: sorted both variants the same way by size]
Signed-off-by: Petr Mladek <[email protected]>
Documentation/core-api/printk-formats.rst

index ff48b55040ef5acfd3ddac0cfca818f35116f472..cd1b0e804b74d8f8ff055e75df20dd84e0e07620 100644 (file)
@@ -13,6 +13,10 @@ Integer types
 
        If variable is of Type,         use printk format specifier:
        ------------------------------------------------------------
+               char                    %hhd or %hhx
+               unsigned char           %hhu or %hhx
+               short int               %hd or %hx
+               unsigned short int      %hu or %hx
                int                     %d or %x
                unsigned int            %u or %x
                long                    %ld or %lx
@@ -21,6 +25,10 @@ Integer types
                unsigned long long      %llu or %llx
                size_t                  %zu or %zx
                ssize_t                 %zd or %zx
+               s8                      %hhd or %hhx
+               u8                      %hhu or %hhx
+               s16                     %hd or %hx
+               u16                     %hu or %hx
                s32                     %d or %x
                u32                     %u or %x
                s64                     %lld or %llx
This page took 0.054845 seconds and 4 git commands to generate.