From f3585bb8b0ecc2dc710c9958484748afad38fec6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 11 Nov 2015 18:00:43 +0000 Subject: Fix format issues found by static analysis --- src/libserver/task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libserver/task.c') diff --git a/src/libserver/task.c b/src/libserver/task.c index 584094e6e..74266a88f 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -340,7 +340,7 @@ rspamd_task_load_message (struct rspamd_task *task, task->msg.len = len; if (task->msg.len == 0) { - msg_warn_task ("message has invalid message length: %ud", + msg_warn_task ("message has invalid message length: %uz", task->msg.len); g_set_error (&task->err, rspamd_task_quark(), RSPAMD_PROTOCOL_ERROR, "Invalid length"); @@ -350,7 +350,7 @@ rspamd_task_load_message (struct rspamd_task *task, if (task->flags & RSPAMD_TASK_FLAG_HAS_CONTROL) { /* We have control chunk, so we need to process it separately */ if (task->msg.len < task->message_len) { - msg_warn_task ("message has invalid message length: %ud and total len: %ud", + msg_warn_task ("message has invalid message length: %ul and total len: %ul", task->message_len, task->msg.len); g_set_error (&task->err, rspamd_task_quark(), RSPAMD_PROTOCOL_ERROR, "Invalid length"); @@ -495,7 +495,7 @@ rspamd_task_process (struct rspamd_task *task, guint stages) task->processed_stages |= RSPAMD_TASK_STAGE_DONE; } - msg_debug_task ("task is processed", st); + msg_debug_task ("task is processed"); return ret; } -- cgit v1.2.3