aboutsummaryrefslogtreecommitdiff
path: root/src/helper/log.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-05-07 14:25:34 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-05-07 14:25:34 +0000
commitee793f0fcbd2d7e4ad08e61d242ba178e8909b45 (patch)
tree772607aa303278b216305ccf40fc88d76511edf2 /src/helper/log.h
parenta197e759ffcb047a383adf686966f68934fef206 (diff)
downloadriscv-openocd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.zip
riscv-openocd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.tar.gz
riscv-openocd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.tar.bz2
This matters for embedded devices, but is probably not observably better for PC hosted OpenOCD.
git-svn-id: svn://svn.berlios.de/openocd/trunk@647 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/log.h')
-rw-r--r--src/helper/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/log.h b/src/helper/log.h
index 9929d42..6d61cf5 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -80,7 +80,7 @@ extern int debug_level;
#define LOG_DEBUG(expr ...) \
- log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr)
+ if (debug_level >= LOG_LVL_DEBUG) { log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr); }
#define LOG_INFO(expr ...) \
log_printf_lf (LOG_LVL_INFO, __FILE__, __LINE__, __FUNCTION__, expr)