diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-12-05 09:34:53 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-12-05 08:27:22 -0600 |
commit | d06cda32f6428601b4b2278a0286aa2b7a172eb1 (patch) | |
tree | eeea0d29c09efe89669d33e93fc5dc3a8529e9b7 /checks.c | |
parent | 501e21cc6f1a7eca5954f5b0611d9853a7b9367e (diff) | |
download | dtc-d06cda32f6428601b4b2278a0286aa2b7a172eb1.zip dtc-d06cda32f6428601b4b2278a0286aa2b7a172eb1.tar.gz dtc-d06cda32f6428601b4b2278a0286aa2b7a172eb1.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |