summaryrefslogtreecommitdiff
path: root/common/cmd_mgdisk.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-29 13:42:29 -0400
committerWolfgang Denk <wd@denx.de>2010-08-09 00:32:06 +0200
commita7481b353bb65eacd7b726b7661cf41ddb31306e (patch)
tree4701d637fc318741e4261bbcc1ffdb7bae1dda43 /common/cmd_mgdisk.c
parent64419e47518bbba059c80b77558f93ad4804145c (diff)
downloadu-boot-imx-a7481b353bb65eacd7b726b7661cf41ddb31306e.zip
u-boot-imx-a7481b353bb65eacd7b726b7661cf41ddb31306e.tar.gz
u-boot-imx-a7481b353bb65eacd7b726b7661cf41ddb31306e.tar.bz2
mflash: use common cmd_usage function
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/cmd_mgdisk.c')
-rw-r--r--common/cmd_mgdisk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_mgdisk.c b/common/cmd_mgdisk.c
index c2d5217..51c994b 100644
--- a/common/cmd_mgdisk.c
+++ b/common/cmd_mgdisk.c
@@ -54,8 +54,7 @@ int do_mg_disk_cmd (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 1;
break;
default:
- printf("Usage:\n%s\n", cmdtp->usage);
- return 1;
+ return cmd_usage(cmdtp);
}
return 0;
}