Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
nat: use correct data types for memory sizes
[vpp.git]
/
src
/
vppinfra
/
unix-formats.c
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;
- what_fmt = "%2d";
+ what_fmt = "%
0
2d";
break;
case 'd':
what = tm->tm_mday;
- what_fmt = "%2d";
+ what_fmt = "%
0
2d";
break;
case 'H':
what = tm->tm_hour;