diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-08 22:04:45 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-08 22:04:45 +0200 |
commit | 91c6725b887283f91b9c0f1cd54a1408ad0861fd (patch) | |
tree | 12675b6c820ea7f40ad4daf9186c5400532ccf99 /src/device | |
parent | Merge pull request #4519 (diff) | |
parent | Remove last traces of libpcsc-lite (diff) | |
download | monero-91c6725b887283f91b9c0f1cd54a1408ad0861fd.tar.xz |
Merge pull request #4527
c5a97315 Remove last traces of libpcsc-lite (moneromooo-monero)
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device_ledger.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index 456eda739..464cb0d90 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -48,21 +48,12 @@ namespace hw { /* ===================================================================== */ /* === Debug ==== */ /* ===================================================================== */ - #ifdef WIN32 - static char *pcsc_stringify_error(LONG rv) { - static __thread char out[20]; - sprintf_s(out, sizeof(out), "0x%08lX", rv); - - return out; - } - #endif void set_apdu_verbose(bool verbose) { apdu_verbose = verbose; } #define TRACKD MTRACE("hw") - #define ASSERT_RV(rv) CHECK_AND_ASSERT_THROW_MES((rv)==SCARD_S_SUCCESS, "Fail SCard API : (" << (rv) << ") "<< pcsc_stringify_error(rv)<<" Device="<<this->id<<", hCard="<<hCard<<", hContext="<<hContext); #define ASSERT_SW(sw,ok,msk) CHECK_AND_ASSERT_THROW_MES(((sw)&(mask))==(ok), "Wrong Device Status : SW=" << std::hex << (sw) << " (EXPECT=" << std::hex << (ok) << ", MASK=" << std::hex << (mask) << ")") ; #define ASSERT_T0(exp) CHECK_AND_ASSERT_THROW_MES(exp, "Protocol assert failure: "#exp ) ; #define ASSERT_X(exp,msg) CHECK_AND_ASSERT_THROW_MES(exp, msg); |