Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Unified Diff: common/cmd_cros.c

Issue 4341002: TBR: Fix var name typo and macro so that build will not fail (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/cmd_cros.c
diff --git a/common/cmd_cros.c b/common/cmd_cros.c
index 59637b83aba1bb197196bedc03392fceebab45d6..50e04298062d37b986ee2d06a230d3b2a20185d5 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) */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698