aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/logger.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-27 15:14:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-27 15:14:45 +0100
commit7a9c8de045c362ef662c00a38e1e34865f47d955 (patch)
tree316c0ca3c688715dd5d66d4d83d02b9c72e156a8 /src/libserver/logger.h
parenta26db85d6ab7cb717772806860d9675e316189e3 (diff)
downloadrspamd-7a9c8de045c362ef662c00a38e1e34865f47d955.tar.gz
rspamd-7a9c8de045c362ef662c00a38e1e34865f47d955.zip
[Minor] Finish transition to signed log id
Diffstat (limited to 'src/libserver/logger.h')
-rw-r--r--src/libserver/logger.h10
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