diff --git a/src/syslogd.c b/src/syslogd.c index 9487212..0ac6e51 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -1635,7 +1635,7 @@ static void fprintlog_successive(struct filed *f, int flags) buffer.timestamp = f->f_lasttime; buffer.flags = flags; - snprintf(msg, sizeof(msg), "last message buffered %zd times", + snprintf(msg, sizeof(msg), "last message buffered %zu times", f->f_prevcount); buffer.msg = msg;