diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/configuration.c | 2 | ||||
-rw-r--r-- | src/helper/log.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/configuration.c b/src/helper/configuration.c index fb5b797e..2d84d9e6 100644 --- a/src/helper/configuration.c +++ b/src/helper/configuration.c @@ -84,7 +84,7 @@ FILE *open_file_from_path (char *file, char *mode) } if (fp) - LOG_DEBUG("opened %s", full_path); + LOG_DEBUG("opened %s", full_path); return fp; } diff --git a/src/helper/log.h b/src/helper/log.h index 6d61cf5f..37490a86 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -80,7 +80,7 @@ extern int debug_level; #define LOG_DEBUG(expr ...) \ - if (debug_level >= LOG_LVL_DEBUG) { log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr); } + ((debug_level >= LOG_LVL_DEBUG) ? log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr) , 0 : 0) #define LOG_INFO(expr ...) \ log_printf_lf (LOG_LVL_INFO, __FILE__, __LINE__, __FUNCTION__, expr) |