aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-05-09 19:12:18 -0400
committerDave Barach <openvpp@barachs.net>2019-05-10 19:47:18 +0000
commit2782630c00efa4349567b908b9534d963b6f67af (patch)
tree80e61b78545fcccf88594ad53c9ebd515619156a
parent7fe470a544c78ba8d60f1ec1cb14808366ad3653 (diff)
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 <pvinci@vinciconsulting.com>
-rw-r--r--src/vppinfra/unix-formats.c4
1 files changed, 2 insertions, 2 deletions
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;