time: Show the time with two digits..

This commit is contained in:
Holger Hans Peter Freyther 2013-05-31 09:53:59 +02:00
parent 93b625bb65
commit 3b4e2e5e27
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ static int dump_log(const uint8_t *data, const size_t len)
return -2;
}
printf("%d:%d:%d %-20s: ",
printf("%.2d:%.2d:%.2d %-20s: ",
tm->tm_hour, tm->tm_min, tm->tm_sec,
file);
printf(log, msg->params[0], msg->params[1], msg->params[2]);