add "bti:" to the beginning of all debug messages
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 13 Apr 2009 19:55:41 +0000 (12:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 13 Apr 2009 19:55:41 +0000 (12:55 -0700)
This makes it a bit easier to parse what is going on.

bti.c

diff --git a/bti.c b/bti.c
index 6fffef5..2e7e2d3 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -43,7 +43,8 @@
 #define dbg(format, arg...)                                            \
        do {                                                            \
                if (debug)                                              \
 #define dbg(format, arg...)                                            \
        do {                                                            \
                if (debug)                                              \
-                       printf("%s: " format , __func__ , ## arg);      \
+                       fprintf(stdout, "bti: %s: " format , __func__ , \
+                               ## arg);                                \
        } while (0)
 
 
        } while (0)