summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
authorjvoisin2017-09-20 10:51:22 +0200
committerjvoisin2017-09-21 16:09:28 +0200
commit6487590b4fd55dddd59b43f1fcf2ebd8d56f20ac (patch)
tree22ff7c8ee4b34a0978093afcc5b747073c625d06 /src/sp_utils.h
parent09a71ec9b889af34173e354ecba935a9db010a19 (diff)
Add travis
Diffstat (limited to '')
-rw-r--r--src/sp_utils.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h
index 37dd2c0..3b14205 100644
--- a/src/sp_utils.h
+++ b/src/sp_utils.h
@@ -35,14 +35,14 @@
35#define HOOK_FUNCTION_BY_REGEXP(regexp, hook_table, new_function, execution) \ 35#define HOOK_FUNCTION_BY_REGEXP(regexp, hook_table, new_function, execution) \
36 hook_regexp(regexp, SNUFFLEUPAGUS_G(hook_table), new_function, execution) 36 hook_regexp(regexp, SNUFFLEUPAGUS_G(hook_table), new_function, execution)
37 37
38#define LOG_NOTICE "notice" 38#define SP_LOG_NOTICE "notice"
39#define LOG_DROP "drop" 39#define SP_LOG_DROP "drop"
40#define LOG_DEBUG "debug" 40#define SP_LOG_DEBUG "debug"
41#define LOG_ERROR "error" 41#define SP_LOG_ERROR "error"
42 42
43#define sp_log_err(feature, ...) sp_log_msg(feature, LOG_ERROR, __VA_ARGS__) 43#define sp_log_err(feature, ...) sp_log_msg(feature, SP_LOG_ERROR, __VA_ARGS__)
44#ifdef SP_DEBUG 44#ifdef SP_DEBUG
45 #define sp_log_debug(...) sp_log_msg("DEBUG", LOG_DEBUG, __VA_ARGS__) 45 #define sp_log_debug(...) sp_log_msg("DEBUG", SP_LOG_DEBUG, __VA_ARGS__)
46#else 46#else
47 #define sp_log_debug(...) 47 #define sp_log_debug(...)
48#endif 48#endif