diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-02-14 18:14:35 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-02-14 18:14:35 +0100 |
commit | 8dffd114dc07a2ec5832ae6b230a265fce10e7e9 (patch) | |
tree | e7d02626597cda357d6a9af898f2d759b4153c06 /src | |
parent | a92010b5122b8e261c284da313810bf231f068f2 (diff) |
Add a little bit more debug around class of device changes
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus-hci.c | 4 |
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)", |