Commit 7f7a6fdb authored by Ralf Habacker's avatar Ralf Habacker

Prefix debug messages displayed with _dbus_verbose() with a timestamp.

Bug: default avatarSimon McVittie <>
parent dc71d040
......@@ -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 ();
fprintf (stderr, "%ld.%06ld ", sec, usec);
/* Only print pid again if the next line is a new line */
len = strlen (format);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment