]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
doc: printf() codes: Fix format specifier for unsigned int
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Mon, 14 Aug 2023 04:53:48 +0000 (10:23 +0530)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 19 Aug 2023 02:12:52 +0000 (04:12 +0200)
The format specifier for the "unsigned int" variable is documented as
"%d". However, it should be "%u". Thus, fix it.

Fixes: f5e9035043fb ("doc: printf() codes")
Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
doc/develop/printf.rst

index 7b9aea06876d7e226e77f3a6e8ffdfb516aa2f9d..99d05061b14c01b51c9e4d30cc90588a72ad3ada 100644 (file)
@@ -105,19 +105,19 @@ for the individual integer types.
 =================== ==================
 Type                Format specifier
 =================== ==================
-bool               %d, %x
+bool                %d, %x
 char                %d, %x
 unsigned char       %u, %x
 short               %d, %x
 unsigned short      %u, %x
 int                 %d, %x
-unsigned int        %d, %x
+unsigned int        %u, %x
 long                %ld, %lx
 unsigned long       %lu, %lx
 long long           %lld, %llx
 unsigned long long  %llu, %llx
 off_t               %llu, %llx
-ptr_diff_t         %td, %tx
+ptr_diff_t          %td, %tx
 fdt_addr_t          %pa, see pointers
 fdt_size_t          %pa, see pointers
 phys_addr_t         %pa, see pointers