]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd/bootdev: print readable status code
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 30 Jul 2023 14:52:30 +0000 (16:52 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 2 Aug 2023 18:05:57 +0000 (12:05 -0600)
commit0236642212f87c8d589f9e16cc29503b476a45c5
tree800b62bdd05d744dad2c2b791878ed3aa2e81031
parentca9d9263e5214d450e2693b6de297fee74ee753e
cmd/bootdev: print readable status code

device_probe() called by the 'bootdev info' command
returns 0 or a negative error code.

itoa() cannot print negative numbers.

Convert the error code to a positive number.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/bootdev.c