Commit d16ccca8 by Tycho Andersen Committed by Stéphane Graber

log: use the right size for timestamp formatting

v2: get rid of extra debug crap Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent c154af98
......@@ -90,7 +90,7 @@ static int log_append_logfile(const struct lxc_log_appender *appender,
return 0;
t = localtime(&event->timestamp.tv_sec);
strftime(date, sizeof(LXC_LOG_DATEFOMAT_SIZE), "%Y%m%d%H%M%S", t);
strftime(date, sizeof(date), "%Y%m%d%H%M%S", t);
ms = event->timestamp.tv_usec / 1000;
n = snprintf(buffer, sizeof(buffer),
"%15s %10s.%03d %-8s %s - %s:%s:%d - ",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment