diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-12-16 15:04:03 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-12-16 15:04:03 +0100 |
commit | 96b89f86e903cf9110957ec000261e015cf0c05a (patch) | |
tree | ac6da63880c8f16c6f3a79aa0f63bdea6a99664a | |
parent | 49a7c73c811c989a8243b198cf040f8326530727 (diff) | |
download | gnome-bluetooth-96b89f86e903cf9110957ec000261e015cf0c05a.tar.gz |
lib: Add more debug when powering up the default adapter
-rw-r--r-- | lib/bluetooth-client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 63365c29..a47799f7 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -396,7 +396,8 @@ adapter_set_powered_cb (GDBusProxy *proxy, ret = g_dbus_proxy_call_finish (proxy, res, &error); if (!ret) { - g_debug ("Error setting property 'Powered' on interface org.bluez.Adapter1: %s (%s, %d)", + g_debug ("Error setting property 'Powered' on %s: %s (%s, %d)", + g_dbus_proxy_get_object_path (proxy), error->message, g_quark_to_string (error->domain), error->code); } } @@ -419,6 +420,8 @@ adapter_set_powered (BluetoothClient *client, return; } + g_debug ("Powering up default adapter %s", + 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), "org.freedesktop.DBus.Properties.Set", |