From: David Brownell Date: Sat, 28 Nov 2009 19:28:17 +0000 (-0800) Subject: ARM11: fix dbgtap JTAG_DEBUG X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=30f6142fc8570549ff42676ffe16425c6a6ef264;p=fw%2Fopenocd ARM11: fix dbgtap JTAG_DEBUG There is no DEBUG() macro; don't call one! Always at least *parse* debug code, to help prevent such errors. Signed-off-by: David Brownell --- diff --git a/src/target/arm11_dbgtap.c b/src/target/arm11_dbgtap.c index b5b02ef93..9e438951b 100644 --- a/src/target/arm11_dbgtap.c +++ b/src/target/arm11_dbgtap.c @@ -30,9 +30,9 @@ #include "time_support.h" #if 0 -#define JTAG_DEBUG(expr ...) DEBUG(expr) +#define JTAG_DEBUG(expr ...) do { if (1) LOG_DEBUG(expr); } while (0) #else -#define JTAG_DEBUG(expr ...) do {} while (0) +#define JTAG_DEBUG(expr ...) do { if (0) LOG_DEBUG(expr); } while (0) #endif /*