doc: printf() codes: Fix format specifier for unsigned int

The format specifier for the "unsigned int" variable is documented as
"%d". However, it should be "%u". Thus, fix it.

Fixes: f5e9035043 ("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>
This commit is contained in:
Siddharth Vadapalli 2023-08-14 10:23:48 +05:30 committed by Heinrich Schuchardt
parent aab60a5128
commit 68886a9941

View file

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