dbus-monitor: print serial ...

Michael Meeks michael.meeks at novell.com
Fri Aug 29 03:43:59 PDT 2008


Hi guys,

	Just a tiny patch-let: when debugging a scenario with multiple threads
calling the same remote method name; it's really useful to be able to
see the message serial; and of course (AFAICS) we print the reply serial
already (though with nothing to pair it to).

	HTH,

		Michael.

diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c
index d5fced3..ea15769 100644
--- a/tools/dbus-print-message.c
+++ b/tools/dbus-print-message.c
@@ -263,7 +263,8 @@ print_message (DBusMessage *message, dbus_bool_t
literal)
        {
        case DBUS_MESSAGE_TYPE_METHOD_CALL:
        case DBUS_MESSAGE_TYPE_SIGNAL:
-         printf (" path=%s; interface=%s; member=%s\n",
+         printf (" serial=%u path=%s; interface=%s; member=%s\n",
+                  dbus_message_get_serial (message),
                  dbus_message_get_path (message),
                  dbus_message_get_interface (message),
                  dbus_message_get_member (message));


-- 
 michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot




More information about the dbus mailing list