[U-Boot] [PATCH] cmd_mmc: use common usage function

Mike Frysinger vapier at gentoo.org
Mon Jul 5 09:34:12 CEST 2010


Rather than using a custom "Usage:", use the common cmd_usage() function.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 common/cmd_mmc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 698157f..329ef09 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -161,7 +161,7 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	case 0:
 	case 1:
 	case 4:
-		printf("Usage:\n%s\n", cmdtp->usage);
+		cmd_usage(cmdtp);
 		return 1;
 
 	case 2:
@@ -218,7 +218,7 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 				n, (n == cnt) ? "OK" : "ERROR");
 			return (n == cnt) ? 0 : 1;
 		} else {
-			printf("Usage:\n%s\n", cmdtp->usage);
+			cmd_usage(cmdtp);
 			rc = 1;
 		}
 
-- 
1.7.1.1



More information about the U-Boot mailing list