summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-13 01:21:31 +0100
committerGravatar Martin Szulecki2010-01-13 01:21:31 +0100
commit8e04b4036e9328b50c4bd308f6f0498972b7e84f (patch)
tree7fbde475a636c6c4aae85d9caa9127aea4ec1cb9 /src
parenta52e7c4f59f852101a67aff3c6ff9d9252545709 (diff)
downloadlibimobiledevice-8e04b4036e9328b50c4bd308f6f0498972b7e84f.tar.gz
libimobiledevice-8e04b4036e9328b50c4bd308f6f0498972b7e84f.tar.bz2
Improve debug print format and make it a bit more compact
Diffstat (limited to 'src')
-rw-r--r--src/debug.c4
1 files 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
53 strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); 53 strftime(str_time, 254, "%H:%M:%S", localtime (&the_time));
54 54
55 /* generate header text */ 55 /* generate header text */
56 (void)asprintf(&header, "%s %s %s:%d", str_time, file, func, line); 56 (void)asprintf(&header, "%s %s:%d %s()", str_time, file, line, func);
57 free (str_time); 57 free (str_time);
58 58
59 /* always in light green */ 59 /* always in light green */
60 printf ("%s\n", header); 60 printf ("%s: ", header);
61 61
62 /* different colors according to the severity */ 62 /* different colors according to the severity */
63 printf ("%s\n", buffer); 63 printf ("%s\n", buffer);