summaryrefslogtreecommitdiff
path: root/src/helper/log.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-11 06:13:21 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-11 06:13:21 +0000
commit0689815716ca7dbc1955b48390f502556ebb181a (patch)
tree11425ca7e96f18a149c55dc019e22015f4244ebe /src/helper/log.h
parent28f7fb41c36ee63cbad4878f03e7d2642c6e9000 (diff)
downloadopenocd+libswd-0689815716ca7dbc1955b48390f502556ebb181a.tar.gz
openocd+libswd-0689815716ca7dbc1955b48390f502556ebb181a.tar.bz2
openocd+libswd-0689815716ca7dbc1955b48390f502556ebb181a.tar.xz
openocd+libswd-0689815716ca7dbc1955b48390f502556ebb181a.zip
Duane Ellis: addresses protocol problems with GDB.
https://lists.berlios.de/pipermail/openocd-development/2008-October/003326.html git-svn-id: svn://svn.berlios.de/openocd/trunk@1039 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/log.h')
-rw-r--r--src/helper/log.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helper/log.h b/src/helper/log.h
index 93318f94..aeb47dbb 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -88,6 +88,7 @@ extern int debug_level;
/* Avoid fn call and building parameter list if we're not outputting the information.
* Matters on feeble CPUs for DEBUG/INFO statements that are involved frequently */
+#define LOG_LEVEL_IS( FOO ) ((debug_level) >= (FOO))
#define LOG_DEBUG(expr ...) \
((debug_level >= LOG_LVL_DEBUG) ? log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr) , 0 : 0)