aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-11 15:34:19 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-11 18:00:58 +0200
commit97f965ebad4e15912e401ecb8bf2b259e093d91b (patch)
tree013a761cf4370571abd7b76e89c3bf9405ec1a4f
parent5cf9322ea5215b238364e5caac9e0e176522c4a8 (diff)
downloadlibnitrokey-97f965ebad4e15912e401ecb8bf2b259e093d91b.tar.gz
libnitrokey-97f965ebad4e15912e401ecb8bf2b259e093d91b.tar.bz2
Show proper device status code
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/device_proto.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/device_proto.h b/include/device_proto.h
index 0be9ed1..388c721 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -393,12 +393,14 @@ namespace nitrokey {
}
LOG(std::string("<= ") +
- std::string(
- commandid_to_string(static_cast<CommandID>(resp.command_id))
- + std::string(" ")
- + std::to_string(resp.storage_status.device_status)
+ std::string(
+ commandid_to_string(static_cast<CommandID>(resp.command_id))
+ + std::string(" ")
+ + std::to_string(resp.device_status)
+ + std::string(" ")
+ + std::to_string(resp.storage_status.device_status)
// + std::to_string( status_translate_command(resp.storage_status.device_status))
- ), Loglevel::DEBUG_L1);
+ ), Loglevel::DEBUG_L1);
LOG("Incoming HID packet:", Loglevel::DEBUG);
LOG(static_cast<std::string>(resp), Loglevel::DEBUG);