From 745122f6b24b5e6c82e8915901eeff07538c7221 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 11 May 2016 08:06:04 +0200 Subject: [PATCH 2/4] Prefix debug messages displayed with _dbus_verbose() with a timestamp. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=95191 --- dbus/dbus-internals.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index ebde45a..18db69e 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -388,6 +388,8 @@ _dbus_verbose_real ( va_list args; static dbus_bool_t need_pid = TRUE; int len; + long sec, usec; + _dbus_get_real_time (&sec, &usec); /* things are written a bit oddly here so that * in the non-verbose case we just have the one @@ -403,6 +405,7 @@ _dbus_verbose_real ( _dbus_print_thread (); } #endif + fprintf (stderr, "%ld.%06ld ", sec, usec); /* Only print pid again if the next line is a new line */ len = strlen (format); -- 2.6.6