From: Timo Sirainen Date: Tue, 16 Jun 2009 03:14:25 +0000 (-0400) Subject: expire-tool --test: Fixed timestamp logging. X-Git-Tag: 2.0.alpha1~570 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4c2692e09181a7745872a156e8a2b7d32c224fe;p=thirdparty%2Fdovecot%2Fcore.git expire-tool --test: Fixed timestamp logging. --HG-- branch : HEAD --- diff --git a/src/plugins/expire/expire-tool.c b/src/plugins/expire/expire-tool.c index 505dbcaaf0..1f08d39a43 100644 --- a/src/plugins/expire/expire-tool.c +++ b/src/plugins/expire/expire-tool.c @@ -268,11 +268,13 @@ static void expire_run(struct master_service *service, bool testrun) /* no change */ } else if (!testrun) dict_set(trans, key, new_value); - else { + else T_BEGIN { i_info("%s: timestamp %s (%s) -> %s (%s)", - userp, value, ctime(&expire_time), - new_value, ctime(&oldest)); - } + userp, value, + t_strdup(ctime(&expire_time)), + new_value, + t_strdup(ctime(&oldest))); + } T_END; } } if (testrun && userp == NULL)