summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index dcd31493..0fd8c2cd 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1003,6 +1003,8 @@ int set_service_classes(int dd, const uint8_t *cls, uint8_t value)
if (cls[2] == value)
return 0; /* Already set */
+ debug("Changing service classes to 0x%06x", dev_class);
+
dev_class = (value << 16) | (cls[1] << 8) | cls[0];
if (hci_write_class_of_dev(dd, dev_class, HCI_REQ_TIMEOUT) < 0) {
@@ -1023,6 +1025,8 @@ int set_major_and_minor_class(int dd, const uint8_t *cls,
dev_class = (cls[2] << 16) | ((cls[1] & 0x20) << 8) |
((major & 0xdf) << 8) | minor;
+ debug("Changing major/minor class to 0x%06x", dev_class);
+
if (hci_write_class_of_dev(dd, dev_class, HCI_REQ_TIMEOUT) < 0) {
int err = -errno;
error("Can't write class of device: %s (%d)",