On Windows, dbus can be configured to send DBUS_VERBOSE messages
to the Windows debug port instead of stderr. If we're in that
configuration, we already avoided printing thread information to
stderr before each verbose message; do the same for timestamps.
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99749
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
{
_dbus_print_thread ();
}
-#endif
+ _dbus_get_real_time (&sec, &usec);
fprintf (stderr, "%ld.%06ld ", sec, usec);
+#endif
/* Only print pid again if the next line is a new line */
len = strlen (format);