GDBusConnection: Debug messages when receiving signals and method invocations
authorDavid Zeuthen <davidz@redhat.com>
Tue, 3 Aug 2010 19:36:16 +0000 (15:36 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 3 Aug 2010 19:36:16 +0000 (15:36 -0400)
Spell out "RECEIVED SIGNAL" instead of "SIGNAL" to emphasize this is
about receiving a signal, not emitting one (which is "SIGNAL
EMISSION"). Also make the "arrows" point in the "right" direction
("<<<<" vs ">>>>") - like this:

 ========================================================================
 GDBus-debug:Signal:
  <<<< RECEIVED SIGNAL org.freedesktop.DBus.NameOwnerChanged
       on object /org/freedesktop/DBus
       sent by name org.freedesktop.DBus

and

 ========================================================================
 GDBus-debug:Incoming:
  <<<< METHOD INVOCATION org.freedesktop.PolicyKit1.Authority.EnumerateTemporaryAuthorizations()
       on object /org/freedesktop/PolicyKit1/Authority
       invoked by name :1.2176

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusconnection.c

index 95fcaea..9551b49 100644 (file)
@@ -3349,7 +3349,7 @@ distribute_signals (GDBusConnection *connection,
       _g_dbus_debug_print_lock ();
       g_print ("========================================================================\n"
                "GDBus-debug:Signal:\n"
-               " >>>> SIGNAL %s.%s\n"
+               " <<<< RECEIVED SIGNAL %s.%s\n"
                "      on object %s\n"
                "      sent by name %s\n",
                g_dbus_message_get_interface (message),
@@ -5886,7 +5886,7 @@ distribute_method_call (GDBusConnection *connection,
       _g_dbus_debug_print_lock ();
       g_print ("========================================================================\n"
                "GDBus-debug:Incoming:\n"
-               " >>>> METHOD INVOCATION %s.%s()\n"
+               " <<<< METHOD INVOCATION %s.%s()\n"
                "      on object %s\n"
                "      invoked by name %s\n",
                interface_name, member,