Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
7fe470a
)
zero-pad date string output.
80/19480/2
author
Paul Vinciguerra
<pvinci@vinciconsulting.com>
Thu, 9 May 2019 23:12:18 +0000
(19:12 -0400)
committer
Dave Barach
<openvpp@barachs.net>
Fri, 10 May 2019 19:47:18 +0000
(19:47 +0000)
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>
src/vppinfra/unix-formats.c
patch
|
blob
|
history
diff --git
a/src/vppinfra/unix-formats.c
b/src/vppinfra/unix-formats.c
index
c447329
..
7059686
100644
(file)
--- 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;
break;
case 'm':
what = tm->tm_mon + 1;
- what_fmt = "%2d";
+ what_fmt = "%
0
2d";
break;
case 'd':
what = tm->tm_mday;
break;
case 'd':
what = tm->tm_mday;
- what_fmt = "%2d";
+ what_fmt = "%
0
2d";
break;
case 'H':
what = tm->tm_hour;
break;
case 'H':
what = tm->tm_hour;