summaryrefslogtreecommitdiff
path: root/board/amcc/taihu/taihu.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-01-27 18:03:11 -0600
committerWolfgang Denk <wd@denx.de>2009-01-28 08:43:52 +0100
commit79621bc10ba8b8c45d348994aba5b9e4923cb77b (patch)
treeb0d5203f7b03b0de86855c22c9ec9551e1ab5ddd /board/amcc/taihu/taihu.c
parent62c3ae7c6ef215b1afa614abdf61acf077752207 (diff)
downloadu-boot-imx-79621bc10ba8b8c45d348994aba5b9e4923cb77b.zip
u-boot-imx-79621bc10ba8b8c45d348994aba5b9e4923cb77b.tar.gz
u-boot-imx-79621bc10ba8b8c45d348994aba5b9e4923cb77b.tar.bz2
amcc: Clean up command usage output
Update taihu and taishan commands to use cmd_usage() function to display usage messages. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'board/amcc/taihu/taihu.c')
-rw-r--r--board/amcc/taihu/taihu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/amcc/taihu/taihu.c b/board/amcc/taihu/taihu.c
index 6e9330f..a98c186 100644
--- a/board/amcc/taihu/taihu.c
+++ b/board/amcc/taihu/taihu.c
@@ -102,13 +102,13 @@ static int do_led_ctl(cmd_tbl_t* cmd_tp, int flags, int argc, char *argv[])
int led_no;
if (argc != 3) {
- printf("%s", cmd_tp->usage);
+ cmd_usage(cmd_tp);
return -1;
}
led_no = simple_strtoul(argv[1], NULL, 16);
if (led_no != 1 && led_no != 2) {
- printf("%s", cmd_tp->usage);
+ cmd_usage(cmd_tp);
return -1;
}
@@ -123,7 +123,7 @@ static int do_led_ctl(cmd_tbl_t* cmd_tp, int flags, int argc, char *argv[])
else
gpio_write_bit(31, 0);
} else {
- printf("%s", cmd_tp->usage);
+ cmd_usage(cmd_tp);
return -1;
}