From af4e4dc276dacde120a00952344dedc3976009db Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 10 Mar 2007 19:52:30 +0000 Subject: * tools/dbus-print-message.c (print_message): added printing of the reply serial to method returns and errors, so you can actually figure out the message/reply pairs - patch by olli.salli at collabora.co.uk. --- tools/dbus-print-message.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools/dbus-print-message.c') diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c index bac538ec..bbc0d239 100644 --- a/tools/dbus-print-message.c +++ b/tools/dbus-print-message.c @@ -270,12 +270,14 @@ print_message (DBusMessage *message, dbus_bool_t literal) break; case DBUS_MESSAGE_TYPE_METHOD_RETURN: - printf ("\n"); + printf (" reply_serial=%u\n", + dbus_message_get_reply_serial (message)); break; case DBUS_MESSAGE_TYPE_ERROR: - printf (" error_name=%s\n", - dbus_message_get_error_name (message)); + printf (" error_name=%s reply_serial=%u\n", + dbus_message_get_error_name (message), + dbus_message_get_reply_serial (message)); break; default: -- cgit v1.2.3