aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-07-28 11:50:38 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-07-28 11:50:38 +0200
commit080b88a018e0cca01d3e89ef264173c332ab4eeb (patch)
treeb3d1652fea8c1533777fef4ad7091285f312ac18 /device.cc
parent89a73d88c9026b6347bea113896d24e419c4370c (diff)
downloadlibnitrokey-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.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/device.cc b/device.cc
index 20bb0c6..1204c1e 100644
--- a/device.cc
+++ b/device.cc
@@ -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);