aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-28 11:28:17 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-28 11:28:17 -0800
commit30f6142fc8570549ff42676ffe16425c6a6ef264 (patch)
tree43e9dfd930c021120bd464163a1e7a56a5fdf043 /src
parentacbe054a38a45432f5948026e1e9258b4e2910c2 (diff)
downloadriscv-openocd-30f6142fc8570549ff42676ffe16425c6a6ef264.zip
riscv-openocd-30f6142fc8570549ff42676ffe16425c6a6ef264.tar.gz
riscv-openocd-30f6142fc8570549ff42676ffe16425c6a6ef264.tar.bz2
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 <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/target/arm11_dbgtap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm11_dbgtap.c b/src/target/arm11_dbgtap.c
index b5b02ef..9e43895 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
/*