From: Paul Vinciguerra Date: Thu, 9 May 2019 23:12:18 +0000 (-0400) Subject: zero-pad date string output. X-Git-Tag: v20.01-rc0~644 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F19480%2F2;p=vpp.git zero-pad date string output. 2019/ 5/ 9 21:18:01:710 notice -> 2019/05/09 21:18:01:710 notice Change-Id: I8ed932a0d6f5e6ce29ab6428f0f01221d0a6ae34 Signed-off-by: Paul Vinciguerra --- diff --git a/src/vppinfra/unix-formats.c b/src/vppinfra/unix-formats.c index c4473299563..7059686555b 100644 --- a/src/vppinfra/unix-formats.c +++ b/src/vppinfra/unix-formats.c @@ -812,11 +812,11 @@ u8 * format_timeval (u8 * s, va_list * args) break; case 'm': what = tm->tm_mon + 1; - what_fmt = "%2d"; + what_fmt = "%02d"; break; case 'd': what = tm->tm_mday; - what_fmt = "%2d"; + what_fmt = "%02d"; break; case 'H': what = tm->tm_hour;