[U-Boot] [PATCH v5 6/9] Create a single cmd_call() function to handle command execution

Mike Frysinger vapier at gentoo.org
Tue Mar 6 05:40:56 CET 2012


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: <http://lists.denx.de/pipermail/u-boot/attachments/20120305/a29180eb/attachment.pgp>


More information about the U-Boot mailing list