diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-28 11:50:38 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-28 11:50:38 +0200 |
commit | 080b88a018e0cca01d3e89ef264173c332ab4eeb (patch) | |
tree | b3d1652fea8c1533777fef4ad7091285f312ac18 /device.cc | |
parent | 89a73d88c9026b6347bea113896d24e419c4370c (diff) | |
download | libnitrokey-080b88a018e0cca01d3e89ef264173c332ab4eeb.tar.gz libnitrokey-080b88a018e0cca01d3e89ef264173c332ab4eeb.tar.bz2 |
Add missing macro for the NO_LOG feature switch, and cut other strings expl.
Diffstat (limited to 'device.cc')
-rw-r--r-- | device.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -350,6 +350,10 @@ LibremKey::LibremKey(): #include <sstream> #define p(x) ss << #x << " " << x << ", "; std::string Device::ErrorCounters::get_as_string() { +#ifdef NO_LOG + return ""; +#endif + std::stringstream ss; p(total_comm_runs); p(communication_successful); |