diff options
Diffstat (limited to 'src/sp_utils.h')
| -rw-r--r-- | src/sp_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h index 200e82c..9df196c 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define sp_log_err(feature, ...) sp_log_msg(feature, SP_LOG_ERROR, __VA_ARGS__) | 37 | #define sp_log_err(feature, ...) sp_log_msg(feature, SP_LOG_ERROR, __VA_ARGS__) |
| 38 | #define sp_log_warn(feature, ...) sp_log_msg(feature, SP_LOG_WARN, __VA_ARGS__) | 38 | #define sp_log_warn(feature, ...) sp_log_msg(feature, SP_LOG_WARN, __VA_ARGS__) |
| 39 | #ifdef SP_DEBUG | 39 | #ifdef SP_DEBUG |
| 40 | #define sp_log_debug(...) sp_log_msg("DEBUG", SP_LOG_DEBUG, __VA_ARGS__) | 40 | #define sp_log_debug(fmt, ...) sp_log_msg("DEBUG", SP_LOG_DEBUG, "%s(): " fmt, __FUNCTION__, ##__VA_ARGS__) |
| 41 | #else | 41 | #else |
| 42 | #define sp_log_debug(...) | 42 | #define sp_log_debug(...) |
| 43 | #endif | 43 | #endif |
