summaryrefslogtreecommitdiff
path: root/checks.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-12-05 09:34:53 +1100
committerJon Loeliger <jdl@freescale.com>2007-12-05 08:27:22 -0600
commitd06cda32f6428601b4b2278a0286aa2b7a172eb1 (patch)
treeeeea0d29c09efe89669d33e93fc5dc3a8529e9b7 /checks.c
parent501e21cc6f1a7eca5954f5b0611d9853a7b9367e (diff)
downloaddtc-d06cda32f6428601b4b2278a0286aa2b7a172eb1.tar.gz
dtc: Fix FAIL() macro varargs
The way the checking subsystem FAIL() macro is currently implemented it must take at least one paramater after the format string. This patch corrects the problem. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'checks.c')
-rw-r--r--checks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks.c b/checks.c
index 83f1fae..fea89df 100644
--- a/checks.c
+++ b/checks.c
@@ -101,11 +101,11 @@ static inline void check_msg(struct check *c, const char *fmt, ...)
fprintf(stderr, "\n");
}
-#define FAIL(c, fmt, ...) \
+#define FAIL(c, ...) \
do { \
TRACE((c), "\t\tFAILED at %s:%d", __FILE__, __LINE__); \
(c)->status = FAILED; \
- check_msg((c), fmt, __VA_ARGS__); \
+ check_msg((c), __VA_ARGS__); \
} while (0)
static void check_nodes_props(struct check *c, struct node *dt, struct node *node)