print log timestamps with padding 0s for better sorting

This commit is contained in:
ehouse 2009-09-15 12:54:40 +00:00
parent 135048a3cf
commit d5d20293ce

View file

@ -120,7 +120,7 @@ logf( XW_LogLevel level, const char* format, ... )
pthread_t me = pthread_self();
fprintf( where, "<%p>%d:%d:%d: ", (void*)me, timp->tm_hour,
fprintf( where, "<%p>%.2d:%.2d:%.2d: ", (void*)me, timp->tm_hour,
timp->tm_min, timp->tm_sec );
va_list ap;