summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-10-24 11:11:03 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-10-24 11:11:03 +0000
commit4b3242a3987bedfbcc6dd9f610336d26f1a3c9cc (patch)
treee904d3ff1c4ce96d0e682054485b5a42ffbe2a9a /hcid/dbus-adapter.c
parentc9eeea81a3cc3db1ca250c13f26107c7c0d201fa (diff)
Cleanup
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index de2c69d2..35f02719 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1112,7 +1112,7 @@ static DBusHandlerResult adapter_get_remote_version(DBusConnection *conn,
str_ver = lmp_vertostr(ver);
- /* default value */
+ /* Default value */
snprintf(info, 64, "Bluetooth %s", str_ver);
create_name(filename, PATH_MAX, STORAGEDIR, adapter->address,
@@ -1122,7 +1122,9 @@ static DBusHandlerResult adapter_get_remote_version(DBusConnection *conn,
if (!str)
goto failed;
- /* check if the data is not corrupted */
+ printf("%s\n", str);
+
+ /* Check if the data is not corrupted */
if (strlen(str) == 16) {
/* Getting the third byte */
features = ((str[6] - 48) << 4) | (str[7] - 48);
@@ -1133,7 +1135,6 @@ static DBusHandlerResult adapter_get_remote_version(DBusConnection *conn,
free(str);
failed:
-
reply = dbus_message_new_method_return(msg);
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;