add .2 for consistent time formatting

This commit is contained in:
ehouse 2009-11-01 01:40:18 +00:00
parent 7a71c4636b
commit 7d411526d3

View file

@ -40,7 +40,7 @@ linux_debugf( const char* format, ... )
gettimeofday( &tv, &tz );
timp = localtime( &tv.tv_sec );
sprintf( buf, "<%d>%d:%d:%d: ", getpid(),
snprintf( buf, sizeof(buf), "<%d>%.2d:%.2d:%.2d:", getpid(),
timp->tm_hour, timp->tm_min, timp->tm_sec );
va_start(ap, format);