Skip to content
Snippets Groups Projects
Commit 16ff9902 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

Add cmd_process_error() to report and process errors


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: default avatarSimon Glass <sjg@chromium.org>
parent 714a5621
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment