]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - src/log.c
Fix padding for line numbers > 1000 in log_message().
[tlsproxy/tlsproxy.git] / 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);