From: Mike Frysinger Date: Mon, 5 Mar 2012 23:40:56 -0500 Subject: [U-Boot] [PATCH v5 6/9] Create a single cmd_call() function to handle command execution In-Reply-To: <1329285566-30386-7-git-send-email-sjg@chromium.org> References: <1329285566-30386-1-git-send-email-sjg@chromium.org> <1329285566-30386-7-git-send-email-sjg@chromium.org> Message-ID: <201203052340.57901.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 15 February 2012 00:59:23 Simon Glass wrote: > --- a/common/command.c > +++ b/common/command.c > > +int cmd_call(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) > +{ > + int result; > + > + result = (cmdtp->cmd)(cmdtp, flag, argc, argv); > + if (result) > + debug("Command failed, result=%d", result); > + return result; > +} be nice to actually display the command's name here ... > --- a/include/command.h > +++ b/include/command.h > @@ -150,4 +152,5 @@ extern int do_reset(cmd_tbl_t *cmdtp, int flag, int > argc, char * const argv[]); #if defined(CONFIG_NEEDS_MANUAL_RELOC) > void fixup_cmdtable(cmd_tbl_t *cmdtp, int size); > #endif > + > #endif /* __COMMAND_H */ unrelated whitespace change -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: