From 67a8409192e8d97f30cb4aeba7860aa2562d1583 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 8 Apr 2017 10:00:03 +0100 Subject: [PATCH] [Minor] Fix couple of format arguments issues --- src/libmime/images.c | 2 +- src/libserver/worker_util.c | 2 +- src/libstat/classifiers/bayes.c | 2 +- src/plugins/dkim_check.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libmime/images.c b/src/libmime/images.c index 1f3c891cf..924264825 100644 --- a/src/libmime/images.c +++ b/src/libmime/images.c @@ -471,7 +471,7 @@ rspamd_image_normalize (struct rspamd_task *task, struct rspamd_image *img) } if (src == NULL) { - msg_info_task ("cannot load image of type %s from %s", + msg_info_task ("cannot load image of type %s from %T", rspamd_image_type_str (img->type), img->filename); } else { diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 9419b9286..07afe37df 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -665,7 +665,7 @@ rspamd_hard_terminate (struct rspamd_main *rspamd_main) while (g_hash_table_iter_next (&it, &k, &v)) { w = v; - msg_err_main ("kill worker %p as Rspamd is terminating due to " + msg_err_main ("kill worker %P as Rspamd is terminating due to " "an unrecoverable error", w->pid); kill (w->pid, SIGKILL); } diff --git a/src/libstat/classifiers/bayes.c b/src/libstat/classifiers/bayes.c index e26cd7a02..cf1f35e6e 100644 --- a/src/libstat/classifiers/bayes.c +++ b/src/libstat/classifiers/bayes.c @@ -339,7 +339,7 @@ bayes_classify (struct rspamd_classifier * ctx, if (ctx->cfg->min_tokens > 0 && cl.text_tokens < ctx->cfg->min_tokens * 0.1) { msg_info_bayes ("ignore bayes probability %.2f since we have " - "too few text tokens: %d, at least %.0f is required", + "too few text tokens: %uL, at least %.0f is required", final_prob, cl.text_tokens, ctx->cfg->min_tokens * 0.1); diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 6d042f9c2..db5a431b0 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -633,7 +633,7 @@ lua_dkim_sign_handler (lua_State *L) } } else { - msg_err_task ("neither key nor rawkey are specified", err); + msg_err_task ("neither key nor rawkey are specified"); lua_pushboolean (L, FALSE); return 1; -- 2.39.5