]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
Fix padding for line numbers > 1000 in log_message().
authorSimon Ruderich <simon@ruderich.org>
Sat, 10 Aug 2013 14:48:15 +0000 (16:48 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 10 Aug 2013 14:52:45 +0000 (16:52 +0200)
src/log.c

index 84e08bad630581f75b36accef4bcb432ba574d7b..402e82dbdf0472e18c78b2c08fffeb00accbbe3f 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -50,7 +50,7 @@ void log_message(int level, const char *file, int line, const char *format, ...)
     flockfile(stderr);
 
 #ifdef DEBUG
-    fprintf(stderr, "%-12s:%-3d ", file, line);
+    fprintf(stderr, "%-12s:%-4d ", file, line);
 #endif
     fprintf(stderr, "[%s] [%d] ", level_string, (int)pthread_self());
     va_start(ap, format);