Show milliseconds in SILC_LOG_DEBUG and family outputs
authorPekka Riikonen <priikone@silcnet.org>
Sat, 23 Feb 2008 13:42:06 +0000 (15:42 +0200)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 23 Feb 2008 13:42:06 +0000 (15:42 +0200)
lib/silcutil/silclog.c

index 18cff9a55b8b012f10ed40d073d5fc6102f46b9b..e857bac29789cf85c96cd5fe7e794b18c5913faa 100644 (file)
@@ -515,8 +515,8 @@ void silc_log_output_debug(char *file, const char *function,
 #ifdef SILC_SYMBIAN
   silc_symbian_debug(function, line, string);
 #else
-  fprintf(stderr, "%02d:%02d:%02d %s:%d: %s\n", curtime.hour,
-         curtime.minute, curtime.second, function, line,
+  fprintf(stderr, "%02d:%02d:%02d.%03d %s:%d: %s\n", curtime.hour,
+         curtime.minute, curtime.second, curtime.msecond, function, line,
          string);
   fflush(stderr);
 #endif /* SILC_SYMBIAN */