diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-16 17:48:13 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:46 +0100 |
commit | 3d96df28fe95deb096a19e3886381ef360b978d8 (patch) | |
tree | a0b60562a76d5c10bf03d8e2d5565ee2352e49c5 /device.cc | |
parent | a0df25c10bfc21574d474547bf2f25372bdbb417 (diff) | |
download | libnitrokey-3d96df28fe95deb096a19e3886381ef360b978d8.tar.gz libnitrokey-3d96df28fe95deb096a19e3886381ef360b978d8.tar.bz2 |
Correct device counters
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r-- | device.cc | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -150,14 +150,23 @@ Stick20::Stick20(): #define p(x) ss << #x << " " << x << ", "; std::string Device::ErrorCounters::get_as_string() { std::stringstream ss; - p(wrong_CRC); - p(CRC_other_than_awaited); - p(busy); + p(total_comm_runs); + p(communication_successful); + ss << "("; + p(command_successful_recv); + p(command_result_not_equal_0_recv); + ss << "), "; + p(sends_executed); + p(recv_executed); + p(successful_storage_commands); p(total_retries); + ss << "("; + p(busy); + p(busy_progressbar); + p(CRC_other_than_awaited); + p(wrong_CRC); + ss << "), "; p(sending_error); p(receiving_error); - p(total_comm_runs); - p(storage_commands); - p(successful ); return ss.str(); } |