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
diff --git a/common/cmd_cros.c b/common/cmd_cros.c
index 59637b8..50e0429 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 @@
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) */