diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-08-25 08:27:04 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-08-25 08:27:04 +0000 |
commit | b6702e5d938cae875a94aff3b385eb9edb621218 (patch) | |
tree | fb8755ab13d8e2e8886eb7c6ac3e857206bc6359 /usr.sbin/smtpd/mda.c | |
parent | 4e094f3da47e781dd21726eeb345af422fe5218d (diff) |
use duration_to_text() when logging delay, for consistency.
ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd/mda.c')
-rw-r--r-- | usr.sbin/smtpd/mda.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index 3a553cd0b07..720e0ed83ef 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.70 2012/08/21 13:13:17 eric Exp $ */ +/* $OpenBSD: mda.c,v 1.71 2012/08/25 08:27:03 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -236,9 +236,9 @@ mda_imsg(struct imsgev *iev, struct imsg *imsg) /* log status */ if (error && asprintf(&error, "Error (%s)", error) < 0) fatal("mda: asprintf"); - log_info("%016" PRIx64 ": to=<%s@%s>, delay=%" PRId64 ", stat=%s", + log_info("%016" PRIx64 ": to=<%s@%s>, delay=%s, stat=%s", s->msg.id, maddr->user, maddr->domain, - (int64_t) (time(NULL) - s->msg.creation), + duration_to_text(time(NULL) - s->msg.creation), error ? error : "Sent"); free(error); |