diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2016-05-11 08:06:04 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2016-05-13 15:31:05 +0200 |
commit | 7f7a6fdb1d9dff1605aa8f568111b879be713f7d (patch) | |
tree | b530f85e5ac3a50bc7ffa6d9107cd07327c31941 | |
parent | dc71d0401022557c5169d10d2ec2de56c875dac0 (diff) |
Prefix debug messages displayed with _dbus_verbose() with a timestamp.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=95191
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r-- | dbus/dbus-internals.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index ebde45af..18db69ee 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); |