diff options
Diffstat (limited to 'src/helper/log.h')
-rw-r--r-- | src/helper/log.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helper/log.h b/src/helper/log.h index 48b43d8..624aa29 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -85,6 +85,11 @@ extern int debug_level; log_printfnl (LOG_INFO, __FILE__, __LINE__, __FUNCTION__, expr); \ } while(0) +#define INFO_SAMELINE(expr ...) \ + do { if (debug_level >= LOG_INFO) \ + log_printf (LOG_INFO, __FILE__, __LINE__, __FUNCTION__, expr); \ + } while(0) + #define WARNING(expr ...) \ do { \ log_printfnl (LOG_WARNING, __FILE__, __LINE__, __FUNCTION__, expr); \ |