From f5beedafa37270026d406df26dae112c6eac353c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 12 Nov 2016 12:16:04 +0000 Subject: [PATCH] [Minor] Print full fuzzy hash digest in the logs --- src/plugins/fuzzy_check.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 8d1d1c226..e08e4a70f 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1462,7 +1462,7 @@ fuzzy_insert_result (struct fuzzy_client_session *session, msg_info_task ( "found fuzzy hash %*xs with weight: " "%.2f, in list: %s:%d%s", - rspamd_fuzzy_hash_len, cmd->digest, + (gint)sizeof (cmd->digest), cmd->digest, nval, symbol, rep->flag, @@ -1776,7 +1776,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg) if (rep->prob > 0.5) { msg_info_task ("processed fuzzy hash %*xs, list: %s:%d for " "message <%s>", - rspamd_fuzzy_hash_len, cmd->digest, + (gint)sizeof (cmd->digest), cmd->digest, symbol, rep->flag, session->task->message_id); @@ -1786,7 +1786,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg) "<%s>, %*xs, " "list %s:%d, error: %d", session->task->message_id, - rspamd_fuzzy_hash_len, cmd->digest, + (gint)sizeof (cmd->digest), cmd->digest, symbol, rep->flag, rep->value); -- 2.39.5