]> git.itanic.dy.fi Git - rrdd/commitdiff
Remove extra space from debug prints
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 17 Jul 2012 11:32:36 +0000 (14:32 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 17 Jul 2012 11:38:41 +0000 (14:38 +0300)
Concatenating the two strings caused on extra space to appear on all
debug prints. Remove the extra space to make prints more pretty.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
debug.c

diff --git a/debug.c b/debug.c
index 3c635fba772d27da30bc6c55efcd7acfc810da09..6c7042eda7af35cb91e2c0dd3c321afca9c08c7b 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -47,7 +47,7 @@ void print_trace(const char *file, int line, int color, int l,
        vsnprintf(trace, sizeof(trace), fmt, args);
         va_end(args);
 
-       strftime(time, sizeof(time), "%d.%m.%Y %T ", localtime(&t));
+       strftime(time, sizeof(time), "%d.%m.%Y %T", localtime(&t));
 
        fprintf(stderr, "%s%s [%5d.%d] %s:%d %s %s",
                color_str, time,