diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-10-24 11:11:03 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-10-24 11:11:03 +0000 |
commit | 4b3242a3987bedfbcc6dd9f610336d26f1a3c9cc (patch) | |
tree | e904d3ff1c4ce96d0e682054485b5a42ffbe2a9a /hcid/dbus-adapter.c | |
parent | c9eeea81a3cc3db1ca250c13f26107c7c0d201fa (diff) |
Cleanup
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r-- | hcid/dbus-adapter.c | 7 |
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; |