aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 18:00:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 18:00:43 +0000
commitf3585bb8b0ecc2dc710c9958484748afad38fec6 (patch)
treea17c28a29c8bf44d2c1e4f28e58ee9bd4053ad5b /src/libstat
parente4abacbe1ddd0f3e7e60a53aec5d93f96702b081 (diff)
downloadrspamd-f3585bb8b0ecc2dc710c9958484748afad38fec6.tar.gz
rspamd-f3585bb8b0ecc2dc710c9958484748afad38fec6.zip
Fix format issues found by static analysis
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/stat_process.c8
-rw-r--r--src/libstat/tokenizers/osb.c2
-rw-r--r--src/libstat/tokenizers/tokenizers.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index a1cbe9c33..b252d19c4 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -330,8 +330,8 @@ preprocess_init_stat_token (gpointer k, gpointer v, gpointer d)
if (cl_runtime->clcf->max_tokens > 0 &&
cl_runtime->processed_tokens > cl_runtime->clcf->max_tokens) {
- msg_debug_task ("<%s> contains more tokens than allowed for %s classifier: "
- "%ud > %ud", cbdata->task, cl_runtime->clcf->name,
+ msg_debug_task ("message contains more tokens than allowed for %s classifier: "
+ "%uL > %ud", cl_runtime->clcf->name,
cl_runtime->processed_tokens,
cl_runtime->clcf->max_tokens);
@@ -638,8 +638,8 @@ rspamd_stat_learn_token (gpointer k, gpointer v, gpointer d)
if (cl_runtime->clcf->max_tokens > 0 &&
cl_runtime->processed_tokens > cl_runtime->clcf->max_tokens) {
- msg_debug_task ("<%s> contains more tokens than allowed for %s classifier: "
- "%ud > %ud", cbdata->task, cl_runtime->clcf->name,
+ msg_debug_task ("message contains more tokens than allowed for %s classifier: "
+ "%uL > %ud", cl_runtime->clcf->name,
cl_runtime->processed_tokens,
cl_runtime->clcf->max_tokens);
diff --git a/src/libstat/tokenizers/osb.c b/src/libstat/tokenizers/osb.c
index 20fc6ece8..cac8f7071 100644
--- a/src/libstat/tokenizers/osb.c
+++ b/src/libstat/tokenizers/osb.c
@@ -125,7 +125,7 @@ rspamd_tokenizer_osb_config_from_ucl (rspamd_mempool_t * pool,
key = rspamd_decode_base32 (ucl_object_tostring (elt),
0, &keylen);
if (keylen < sizeof (rspamd_sipkey_t)) {
- msg_warn ("siphash key is too short: %s", keylen);
+ msg_warn ("siphash key is too short: %z", keylen);
g_free (key);
}
else {
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c
index 439c639a6..c86c286cc 100644
--- a/src/libstat/tokenizers/tokenizers.c
+++ b/src/libstat/tokenizers/tokenizers.c
@@ -259,7 +259,7 @@ rspamd_tokenizer_get_word (rspamd_ftok_t * buf,
break;
case process_signature:
if (*p == '\r' || *p == '\n') {
- msg_debug ("signature found: %*s", siglen, sig);
+ msg_debug ("signature found: %*s", (gint)siglen, sig);
return FALSE;
}
else if (*p != ' ' && *p != '-' && *p != '_') {