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 <[email protected]>
checks.c +2 -2
@@ -101,11 +101,11 @@ static inline void check_msg(struct checfprintf (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)
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Jon Loeliger
AppliedSo, like, the other day David Gibson mumbled:
Quoted 5 lines
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 <[email protected]>
Applied.
jdl