mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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>
This commit is contained in:
parent
501e21cc6f
commit
d06cda32f6
1 changed files with 2 additions and 2 deletions
4
checks.c
4
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue