]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Add cmd_process_error() to report and process errors
authorSimon Glass <sjg@chromium.org>
Wed, 26 Feb 2014 22:59:15 +0000 (15:59 -0700)
committerTom Rini <trini@ti.com>
Tue, 4 Mar 2014 17:15:28 +0000 (12:15 -0500)
U-Boot now uses errors defined in include/errno.h which are negative
integers. Commands which fail need to report the error and return 1
to indicate failure. Add this functionality in cmd_process_error().

For now this merely reports the error number. It would be possible
also to produce a helpful error message by storing the error strings
in U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>

No differences found