commit | d738553f68455b002ea8ca18bb636176f20e2130 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Feb 26 15:59:15 2014 -0700 |
committer | Tom Rini <trini@ti.com> | Tue Mar 04 12:15:28 2014 -0500 |
tree | 4618524681dff751b2860c3d6b8031b4307b7f1c | |
parent | 66c164bf881dd5016aa59dfc25f503138fad3bfd [diff] |
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: Simon Glass <sjg@chromium.org>