Message ID | 20241029212949.3674826-2-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1,1/2] gdbus: Add g_dbus_set_debug | expand |
diff --git a/src/main.c b/src/main.c index 89ee6897c293..41c3271a7457 100644 --- a/src/main.c +++ b/src/main.c @@ -1322,6 +1322,11 @@ static void disconnected_dbus(DBusConnection *conn, void *data) mainloop_quit(); } +static void dbus_debug(const char *str, void *data) +{ + DBG_IDX(0xffff, "%s", str); +} + static int connect_dbus(void) { DBusConnection *conn; @@ -1343,6 +1348,7 @@ static int connect_dbus(void) g_dbus_set_disconnect_function(conn, disconnected_dbus, NULL, NULL); g_dbus_attach_object_manager(conn); + g_dbus_set_debug(dbus_debug, NULL, NULL); return 0; }
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This adds a call to g_dbus_set_debug which enabled debugging of D-Bus messages when dynamic debug is enabled for main.c: bluetoothd[3672799]: [:1.38799:method_call] > org.bluez.Device1.Connect [#761] bluetoothd[3672799]: [:1.38799:error] < org.bluez.Error.Failed [#761] --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+)