aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
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/libserver/task.c
parente4abacbe1ddd0f3e7e60a53aec5d93f96702b081 (diff)
downloadrspamd-f3585bb8b0ecc2dc710c9958484748afad38fec6.tar.gz
rspamd-f3585bb8b0ecc2dc710c9958484748afad38fec6.zip
Fix format issues found by static analysis
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c6
1 files changed, 3 insertions, 3 deletions
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;
}