dbus/tools dbus-print-message.c,1.12,1.13

Ralf Habacker rhabacker at kemper.freedesktop.org
Sat Mar 10 11:52:32 PST 2007


Update of /cvs/dbus/dbus/tools
In directory kemper:/tmp/cvs-serv9659/tools

Modified Files:
	dbus-print-message.c 
Log Message:
* 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.

Index: dbus-print-message.c
===================================================================
RCS file: /cvs/dbus/dbus/tools/dbus-print-message.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- dbus-print-message.c	14 Jun 2006 11:26:41 -0000	1.12
+++ dbus-print-message.c	10 Mar 2007 19:52:30 -0000	1.13
@@ -270,12 +270,14 @@
 	  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:



More information about the dbus-commit mailing list