]> git.itanic.dy.fi Git - rrdd/commitdiff
Change debug message output
authorTimo Kokkonen <kaapeli@ee.oulu.fi>
Wed, 21 May 2008 17:18:46 +0000 (20:18 +0300)
committerTimo Kokkonen <kaapeli@ee.oulu.fi>
Wed, 21 May 2008 17:18:46 +0000 (20:18 +0300)
debug.h

diff --git a/debug.h b/debug.h
index b1f550cad730387299fac7de528b053b64c71560..34e448f83727205d41d45a960d2c94f789079347 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -12,9 +12,9 @@ extern const char normal_color[];
        do {                                                            \
                char indent[16] = { "               " };                \
                indent[get_parent_count()] = 0;                         \
-               fprintf(stderr, "%s%s[%d.%5d] %s:%d %s"                 \
-                       fmt, indent, green_color, get_sibling_count(),  \
-                       getpid(),                                       \
+               fprintf(stderr, "%s%s[%5d.%d] %s:%d %s"                 \
+                       fmt, indent, green_color,                       \
+                       getpid(), get_sibling_count(),                  \
                        __FILE__, __LINE__, normal_color, ##arg);       \
        } while (0)
 
@@ -23,9 +23,9 @@ extern const char normal_color[];
        do {                                                            \
                char indent[16] = { "               " };                \
                indent[get_parent_count()] = 0;                         \
-               fprintf(stderr, "%s%s[%d.%5d] %s:%d Error %s"           \
-                       fmt, indent, red_color, get_sibling_count(),    \
-                       getpid(),                                       \
+               fprintf(stderr, "%s%s[%5d.%d] %s:%d Error %s"           \
+                       fmt, indent, red_color,                         \
+                       getpid(), get_sibling_count(),                  \
                        __FILE__, __LINE__, normal_color, ##arg);       \
        } while (0)