From 8e04b4036e9328b50c4bd308f6f0498972b7e84f Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 13 Jan 2010 01:21:31 +0100 Subject: Improve debug print format and make it a bit more compact --- src/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index 8912b3a..9b8d3f1 100644 --- a/src/debug.c +++ b/src/debug.c @@ -53,11 +53,11 @@ static void debug_print_line(const char *func, const char *file, int line, const strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); /* generate header text */ - (void)asprintf(&header, "%s %s %s:%d", str_time, file, func, line); + (void)asprintf(&header, "%s %s:%d %s()", str_time, file, line, func); free (str_time); /* always in light green */ - printf ("%s\n", header); + printf ("%s: ", header); /* different colors according to the severity */ printf ("%s\n", buffer); -- cgit v1.1-32-gdbae