]> git.baikalelectronics.ru Git - uboot.git/commit
lib: Allow using 0x when a decimal value is requested
authorSimon Glass <sjg@chromium.org>
Sat, 24 Jul 2021 15:03:38 +0000 (09:03 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 2 Aug 2021 17:32:14 +0000 (13:32 -0400)
commit3ddcb5a58e14d5a7d05a10da6d661f27aeb372ae
tree15216d11d6890cd497b6a97176c7aad4c4d63ecf
parent13bda7505e659fe4faa3d2c74db07968112c68ea
lib: Allow using 0x when a decimal value is requested

U-Boot mostly uses hex for value input, largely because addresses are much
easier to understand in hex.

But in some cases a decimal value is requested, such as where the value is
small or hex does not make sense in the context. In these cases it is
sometimes useful to be able to provide a hex value in any case, if only to
resolve any ambiguity.

Add this functionality, for increased flexibility.

Signed-off-by: Simon Glass <sjg@chromium.org>
doc/usage/cmdline.rst
include/vsprintf.h
lib/strto.c
test/str_ut.c