From f5cd8ddeaac7e6df484629b7ae54a86ffa155a05 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Tue, 3 Aug 2010 15:36:16 -0400 Subject: [PATCH] GDBusConnection: Debug messages when receiving signals and method invocations 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 --- gio/gdbusconnection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 95fcaeaae..9551b497b 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -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, -- 2.34.1