tests/{a32,a64}_unicorn: Avoid use of deprecated fmt API
This commit is contained in:
parent
64e6546827
commit
b002419993
2 changed files with 13 additions and 13 deletions
|
@ -15,7 +15,7 @@
|
||||||
#define CHECKED(expr) \
|
#define CHECKED(expr) \
|
||||||
do { \
|
do { \
|
||||||
if (auto cerr_ = (expr)) { \
|
if (auto cerr_ = (expr)) { \
|
||||||
ASSERT_MSG(false, "Call " #expr " failed with error: {} ({})\n", cerr_, \
|
ASSERT_MSG(false, "Call " #expr " failed with error: {} ({})\n", static_cast<size_t>(cerr_), \
|
||||||
uc_strerror(cerr_)); \
|
uc_strerror(cerr_)); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
@ -52,7 +52,7 @@ void A32Unicorn<TestEnvironment>::Run() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (auto cerr_ = uc_emu_start(uc, pc, END_ADDRESS, 0, 1)) {
|
if (auto cerr_ = uc_emu_start(uc, pc, END_ADDRESS, 0, 1)) {
|
||||||
fmt::print("uc_emu_start failed @ {:08x} (code = {:08x}) with error {} ({})", pc, *testenv.MemoryReadCode(pc), cerr_, uc_strerror(cerr_));
|
fmt::print("uc_emu_start failed @ {:08x} (code = {:08x}) with error {} ({})", pc, *testenv.MemoryReadCode(pc), static_cast<size_t>(cerr_), uc_strerror(cerr_));
|
||||||
throw "A32Unicorn::Run() failure";
|
throw "A32Unicorn::Run() failure";
|
||||||
}
|
}
|
||||||
testenv.ticks_left--;
|
testenv.ticks_left--;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#define CHECKED(expr) \
|
#define CHECKED(expr) \
|
||||||
do { \
|
do { \
|
||||||
if (auto cerr_ = (expr)) { \
|
if (auto cerr_ = (expr)) { \
|
||||||
ASSERT_MSG(false, "Call " #expr " failed with error: {} ({})\n", cerr_, \
|
ASSERT_MSG(false, "Call " #expr " failed with error: {} ({})\n", static_cast<size_t>(cerr_), \
|
||||||
uc_strerror(cerr_)); \
|
uc_strerror(cerr_)); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
Loading…
Reference in a new issue