From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 4 Mar 2014 14:16:31 -0500 Subject: [U-Boot] [U-Boot, v9, 02/14] Add cmd_process_error() to report and process errors In-Reply-To: <1393455567-13378-3-git-send-email-sjg@chromium.org> References: <1393455567-13378-3-git-send-email-sjg@chromium.org> Message-ID: <20140304191631.GV16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Feb 26, 2014 at 03:59:15PM -0700, Simon Glass wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: