[gnome-bluetooth/wip/hadess/more-debug: 1/3] lib: Correct debug statement in adapter_set_powered()




commit 71e60886629fbb132086605d66bae1a70962585f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 5 13:40:35 2022 +0100

    lib: Correct debug statement in adapter_set_powered()
    
    To take into account that we can power up, as well as down.
    
    Fixes: 96b89f86

 lib/bluetooth-client.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index a47799f7..acb5b9b0 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -420,7 +420,8 @@ adapter_set_powered (BluetoothClient *client,
                return;
        }
 
-       g_debug ("Powering up default adapter %s",
+       g_debug ("Powering %s default adapter %s",
+                powered ? "up" : "down",
                 g_dbus_proxy_get_object_path (G_DBUS_PROXY (client->default_adapter)));
        variant = g_variant_new_boolean (powered);
        g_dbus_proxy_call (G_DBUS_PROXY (client->default_adapter),


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