From 6d233f5d42352b2bb6ee93e91ba9d4dc9c6c580d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 9 Jun 2008 16:13:17 +0000 Subject: Verbose debugging of auth info errors --- hcid/dbus-hci.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit