diff options
author | Siddharth Vadapalli <s-vadapalli@ti.com> | 2023-08-14 10:23:48 +0530 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-19 04:12:52 +0200 |
commit | 68886a9941557f580fb650f39a76e7416b126534 (patch) | |
tree | af4c066e8a30f544eb045163d27fe1b79ccec613 | |
parent | aab60a51284bce8f21e472d3e8943f76586edf42 (diff) | |
download | u-boot-68886a9941557f580fb650f39a76e7416b126534.tar.gz u-boot-68886a9941557f580fb650f39a76e7416b126534.tar.bz2 u-boot-68886a9941557f580fb650f39a76e7416b126534.zip |
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: 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>
-rw-r--r-- | doc/develop/printf.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/develop/printf.rst b/doc/develop/printf.rst index 7b9aea0687..99d05061b1 100644 --- a/doc/develop/printf.rst +++ b/doc/develop/printf.rst @@ -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 |