[gnome-bluetooth/wip/hadess/more-bt-battery-info] debug



commit ed015d761f38dd4a83715ad290b1039d1fe9f3a5
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 5 18:52:15 2022 +0200

    debug

 lib/bluetooth-client.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 7346a8c0..8901886b 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1870,13 +1870,17 @@ bluetooth_client_has_connected_input_devices (BluetoothClient *client)
        n_items = g_list_model_get_n_items (G_LIST_MODEL (client->list_store));
        for (i = 0; i < n_items; i++) {
                g_autoptr(BluetoothDevice) device = NULL;
+               g_autofree char *bdaddr = NULL;
                g_auto(GStrv) uuids = NULL;
                gboolean connected = FALSE;
 
                device = g_list_model_get_item (G_LIST_MODEL (client->list_store), i);
                g_object_get (device,
+                             "address", &bdaddr,
                              "connected", &connected,
                              "uuids", &uuids, NULL);
+               g_debug ("Device %s %sconnected, UUIDs: %s", bdaddr, connected ? "" : "not ",
+                        g_strjoinv(", ", uuids));
                if (!connected)
                        continue;
                if (!uuids)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]