summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2010-11-03 14:43:15 +0800
committerSimon Glass <sjg@chromium.org>2011-08-24 09:59:28 -0700
commitf5273560625a9c677cb2c56f5a3b76e38fc1b5d2 (patch)
treea20722741f7d9ad2395715a20a0879af6af2a52d
parentd5fe7a7dfe4a7926d3e75fbd393c8e80f0b0ca9d (diff)
TBR: Fix var name typo and macro so that build will not fail
BUG=None TEST=Build u-boot successfully Review URL: http://codereview.chromium.org/4341002 Change-Id: I6f6a94bfbcabad4b504f72f81cf415b1d3ec4dfa
-rw-r--r--common/cmd_cros.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_cros.c b/common/cmd_cros.c
index 59637b83ab..50e0429806 100644
--- a/common/cmd_cros.c
+++ b/common/cmd_cros.c
@@ -41,8 +41,8 @@
#include <part.h>
#include <boot_device.h>
-#define USAGE(ret, cmdtp, fmt, args...) do { \
- printf(fmt, args); \
+#define USAGE(ret, cmdtp, fmt, ...) do { \
+ printf(fmt, ##__VA_ARGS__); \
cmd_usage(cmdtp); \
return (ret); \
} while (0);
@@ -114,7 +114,7 @@ int do_bootdev(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
else if (!strcmp(argv[1], "write"))
opcode = WRITE;
else
- USAGE(1, cmdpt, "Unrecognized action: %s\n", argv[1]);
+ USAGE(1, cmdtp, "Unrecognized action: %s\n", argv[1]);
/* apply De Morgan's laws on
* !((argc == 4 && opcode == SET) || argc == 5) */