summaryrefslogtreecommitdiff
path: root/common/cmd_itest.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-02-14 19:59:25 +0000
committerWolfgang Denk <wd@denx.de>2012-03-06 21:09:41 +0100
commit9d12d5d41d5653ba2f943886f45b8c2eb0f63450 (patch)
tree03ea18e10cb7c8f06bf82525c8aacad91938ad93 /common/cmd_itest.c
parent7344f9128dfa797a9b9d51b38832f77a1eaeac2d (diff)
downloadu-boot-imx-9d12d5d41d5653ba2f943886f45b8c2eb0f63450.zip
u-boot-imx-9d12d5d41d5653ba2f943886f45b8c2eb0f63450.tar.gz
u-boot-imx-9d12d5d41d5653ba2f943886f45b8c2eb0f63450.tar.bz2
Add cmd_process() to process commands in one place
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cmd_itest.c')
0 files changed, 0 insertions, 0 deletions