summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-09 16:13:17 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-09 16:13:17 +0000
commit6d233f5d42352b2bb6ee93e91ba9d4dc9c6c580d (patch)
tree65ab156e785467b71067747df0864dc135b8f99f
parent570d1125ced0a6810a5d139ac114221344e53dc4 (diff)
Verbose debugging of auth info errors
-rw-r--r--hcid/dbus-hci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index b71d9773..f57d65bc 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -2498,6 +2498,8 @@ static uint8_t get_auth_type(bdaddr_t *local, bdaddr_t *remote)
req.type = 0xff;
err = ioctl(dd, HCIGETAUTHINFO, (unsigned long) &req);
+ if (err < 0)
+ debug("HCIGETAUTHINFO failed (%d)", errno);
hci_close_dev(dd);