From e63bb0d39729941954175ae01ac67db8d0f1d990 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 10 Aug 2013 16:48:15 +0200 Subject: [PATCH] Fix padding for line numbers > 1000 in log_message(). --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 84e08ba..402e82d 100644 --- 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); -- 2.43.2