From 8dffd114dc07a2ec5832ae6b230a265fce10e7e9 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 14 Feb 2009 18:14:35 +0100 Subject: Add a little bit more debug around class of device changes --- src/dbus-hci.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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)", -- cgit