[U-Boot] [PATCH] mflash: use common cmd_usage function
Mike Frysinger
vapier at gentoo.org
Fri Jul 23 11:40:31 CEST 2010
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
note: i have no target that uses it, so i havent compile tested this.
but the change is straight forward enough ...
common/cmd_mgdisk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/cmd_mgdisk.c b/common/cmd_mgdisk.c
index 3ba62f6..03bed88 100644
--- a/common/cmd_mgdisk.c
+++ b/common/cmd_mgdisk.c
@@ -54,7 +54,7 @@ int do_mg_disk_cmd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
break;
default:
- printf("Usage:\n%s\n", cmdtp->usage);
+ cmd_usage(cmdtp);
return 1;
}
return 0;
--
1.7.2
More information about the U-Boot
mailing list