[gnome-bluetooth/wip/hadess/powered-fixes: 3/4] lib: Add more debug when powering up the default adapter
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/powered-fixes: 3/4] lib: Add more debug when powering up the default adapter
- Date: Thu, 16 Dec 2021 14:05:01 +0000 (UTC)
commit 96b89f86e903cf9110957ec000261e015cf0c05a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 16 15:04:03 2021 +0100
lib: Add more debug when powering up the default adapter
lib/bluetooth-client.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]