diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-04-25 13:06:37 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-04-25 13:06:37 +0000 |
commit | fa7d18bdf518a3ea6cb379a1b765547c58155166 (patch) | |
tree | 6d41c5fe10ade9c01cd79f5d8eaa9afdc0e72ec2 /hcid/device.c | |
parent | 03df0ffb9a8cb50289d8ec6e4dfdffb375481601 (diff) |
Fix bugs on debug messages and fix Adapter property to be DBUS_TYPE_OBJECT_PATH.
Diffstat (limited to 'hcid/device.c')
-rw-r--r-- | hcid/device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/device.c b/hcid/device.c index 09cd7450..a1cd7d37 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -133,7 +133,7 @@ static int device_read_bdaddr(uint16_t dev_id, bdaddr_t *bdaddr) dd = hci_open_dev(dev_id); if (dd < 0) { - error("Can't open device hci%d", + error("Can't open device hci%d: %s (%d)", dev_id, strerror(errno), errno); return -errno; } @@ -491,7 +491,7 @@ static int digi_revision(uint16_t dev_id, char *revision, size_t size) dd = hci_open_dev(dev_id); if (dd < 0) { - error("Can't open device hci%d", + error("Can't open device hci%d: %s (%d)", dev_id, strerror(errno), errno); return -errno; } @@ -874,7 +874,7 @@ static DBusHandlerResult get_properties(DBusConnection *conn, snprintf(path, sizeof(path), "/hci%d", adapter->dev_id); ppath = path; dbus_message_iter_append_dict_entry(&dict, "Adapter", - DBUS_TYPE_STRING, &ppath); + DBUS_TYPE_OBJECT_PATH, &ppath); dbus_message_iter_close_container(&iter, &dict); |