diff options
Diffstat (limited to 'src/libserver/logger.h')
-rw-r--r-- | src/libserver/logger.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libserver/logger.h b/src/libserver/logger.h index b646aa3fd..8f1177666 100644 --- a/src/libserver/logger.h +++ b/src/libserver/logger.h @@ -156,14 +156,14 @@ gint rspamd_logger_add_debug_module (const gchar *mod); * Macro to use for faster debug modules */ #define INIT_LOG_MODULE(mname) \ - static guint rspamd_##mname##_log_id = (guint)-1; \ + static gint rspamd_##mname##_log_id = -1; \ RSPAMD_CONSTRUCTOR(rspamd_##mname##_log_init) { \ rspamd_##mname##_log_id = rspamd_logger_add_debug_module(#mname); \ } #define INIT_LOG_MODULE_PUBLIC(mname) \ - guint rspamd_##mname##_log_id = (guint)-1; \ + gint rspamd_##mname##_log_id = -1; \ RSPAMD_CONSTRUCTOR(rspamd_##mname##_log_init) { \ rspamd_##mname##_log_id = rspamd_logger_add_debug_module(#mname); \ } @@ -179,17 +179,17 @@ bool rspamd_conditional_debug (rspamd_logger_t *logger, bool rspamd_conditional_debug_fast (rspamd_logger_t *logger, rspamd_inet_addr_t *addr, - guint mod_id, + gint mod_id, const gchar *module, const gchar *id, const gchar *function, const gchar *fmt, ...); bool rspamd_conditional_debug_fast_num_id (rspamd_logger_t *logger, rspamd_inet_addr_t *addr, - guint mod_id, + gint mod_id, const gchar *module, guint64 id, const gchar *function, const gchar *fmt, ...); gboolean rspamd_logger_need_log (rspamd_logger_t *rspamd_log, GLogLevelFlags log_level, - guint module_id); + gint module_id); /** * Function with variable number of arguments support that uses static default logger |