[Crosstoolchain-logs] [device-tree-compiler] 209/357: dtc: Fix FAIL() macro varargs

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit d06cda32f6428601b4b2278a0286aa2b7a172eb1
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Wed Dec 5 09:34:53 2007 +1100

    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 at gibson.dropbear.id.au>
---
 checks.c | 4 ++--
 1 file 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list