aboutsummaryrefslogtreecommitdiff
path: root/src/device/log.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-14 13:36:14 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-14 13:36:14 +0200
commit2dfb4f098eb33b2f3003bdc37a5291e606c8a2c1 (patch)
treee19562d35c9389fa69064a280082e508ec4670eb /src/device/log.cpp
parentMerge pull request #3345 (diff)
parentLedger HW Bug fixes (diff)
downloadmonero-2dfb4f098eb33b2f3003bdc37a5291e606c8a2c1.tar.xz
Merge pull request #3353
73dd883d Ledger HW Bug fixes (Cédric)
Diffstat (limited to 'src/device/log.cpp')
-rw-r--r--src/device/log.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/device/log.cpp b/src/device/log.cpp
index 103b2b3ba..a2ad0f4f4 100644
--- a/src/device/log.cpp
+++ b/src/device/log.cpp
@@ -55,14 +55,14 @@ namespace hw {
MDEBUG(msg << ": " << info);
}
- #ifdef DEBUGLEDGER
+ #ifdef DEBUG_HWDEVICE
extern crypto::secret_key viewkey;
extern crypto::secret_key spendkey;
void decrypt(char* buf, size_t len) {
- #ifdef IODUMMYCRYPT
- int i;
+ #ifdef IODUMMYCRYPT_HWDEVICE
+ size_t i;
if (len == 32) {
//view key?
for (i = 0; i<32; i++) {
@@ -144,7 +144,7 @@ namespace hw {
log_hexbuffer(" device", dd, len);
} else {
- buffer_to_str(logstr, dd, len);
+ buffer_to_str(logstr, 128, dd, len);
log_message("ASSERT EQ OK", msg + ": "+ info + ": "+ std::string(logstr) );
}
}