summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-01-10 13:56:45 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-01-10 16:00:59 +0000
commitdcbe9663905ccfd68f208c8b71358d17ddef25aa (patch)
treebdef977c7630e8a5b0170efc70925bfa3af060c2
parentb9f9ec8d9caeb6a11d1df2cab37edd640f603b67 (diff)
downloadtelepathy-glib-dcbe9663905ccfd68f208c8b71358d17ddef25aa.tar.gz
debug: fix tp_debug_timestamped_log_handler
This was broken in dd8645d4c2263c40. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--telepathy-glib/debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index 4f3be0aa7..802d0b2dc 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -424,10 +424,12 @@ tp_debug_timestamped_log_handler (const gchar *log_domain,
{
#ifdef ENABLE_DEBUG
GTimeVal now;
- gchar *tmp;
+ gchar *tmp, *now_str;
g_get_current_time (&now);
- tmp = g_time_val_to_iso8601 (&now);
+ now_str = g_time_val_to_iso8601 (&now);
+ tmp = g_strdup_printf ("%s: %s", now_str, message);
+ g_free (now_str);
message = tmp;
#endif