Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    9d12d5d4
    Add cmd_process() to process commands in one place · 9d12d5d4
    Simon Glass authored
    
    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 about 32 bytes with this clean-up.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    9d12d5d4
    History
    Add cmd_process() to process commands in one place
    Simon Glass authored
    
    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 about 32 bytes with this clean-up.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>