aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-09-11 10:56:26 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-09-20 12:47:05 +0200
commite1d35ffdaa4147b18ab22a1acc70762c9434a2d7 (patch)
tree91bb01f06210f3a041eaebd365e85b2edee0c1b9 /device.cc
parent74c547e08220a55878de74d7c304c3a5cee33b11 (diff)
downloadlibnitrokey-e1d35ffdaa4147b18ab22a1acc70762c9434a2d7.tar.gz
libnitrokey-e1d35ffdaa4147b18ab22a1acc70762c9434a2d7.tar.bz2
Log formatting: Enumerate from 1
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.cc b/device.cc
index e6edd73..a7b68e1 100644
--- a/device.cc
+++ b/device.cc
@@ -93,7 +93,7 @@ int Device::send(const void *packet) {
mp_devhandle, (const unsigned char *)(packet), HID_REPORT_SIZE);
if (send_feature_report < 0) _reconnect();
//add thread sleep?
- LOG(std::string("Sending attempt: ")+std::to_string(i) + " / 3" , Loglevel::DEBUG_L2);
+ LOG(std::string("Sending attempt: ")+std::to_string(i+1) + " / 3" , Loglevel::DEBUG_L2);
}
return send_feature_report;
}