Re: [U-Boot] [PATCH v5 8/9] Add cmd_process() to process commands in one place

2012-03-06 Thread Wolfgang Denk
Dear Simon Glass, In message <1329285566-30386-9-git-send-email-...@chromium.org> you wrote: > We currently have the same code in hush.c and main.c. This brings the > code into one place. > > As an added feature, if the command function returns CMD_RET_USAGE then > cmd_process() will print a usag

[U-Boot] [PATCH v5 8/9] Add cmd_process() to process commands in one place

2012-02-14 Thread Simon Glass
We currently have the same code in hush.c and main.c. This brings the code into one place. As an added feature, if the command function returns CMD_RET_USAGE then cmd_process() will print a usage message for the command before returning the standard failure code of 1. ARM code size increases abou