From f3e25ccb88ded387e6c428038899939f62b07f51 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 11 Jun 2008 07:50:39 +0000 Subject: Use strerror to show HCIGETAUTHINFO ioctl error --- hcid/dbus-hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index 55db4c27..d0b6b59c 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -1033,7 +1033,8 @@ static uint8_t get_auth_requirements(bdaddr_t *local, bdaddr_t *remote) err = ioctl(dd, HCIGETAUTHINFO, (unsigned long) &req); if (err < 0) - debug("HCIGETAUTHINFO failed (%d)", errno); + debug("HCIGETAUTHINFO failed: %s (%d)", strerror(errno), + errno); hci_close_dev(dd); -- cgit