diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-09 21:32:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-15 00:42:05 +0000 |
commit | 58828b0ce9556ee9cb38c484d1226663a0dcd993 (patch) | |
tree | dfea448799d9bd4328114199a9767dd18d045be3 /src/mongo/util/stacktrace_test.cpp | |
parent | 22a77301a5b63b9bb7ef6dd73eabb4865c63a921 (diff) | |
download | mongo-58828b0ce9556ee9cb38c484d1226663a0dcd993.tar.gz |
SERVER-43909 clarify and repair util/hex.h API
- hexblob namespace
- Throwy hexblob::decode (nee fromHex)
- StringData overloads of hex codec ops
- add unsignedHex<T> and zeroPaddedHex<T>
Diffstat (limited to 'src/mongo/util/stacktrace_test.cpp')
-rw-r--r-- | src/mongo/util/stacktrace_test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/util/stacktrace_test.cpp b/src/mongo/util/stacktrace_test.cpp index 714863c357b..9bf6dd99a19 100644 --- a/src/mongo/util/stacktrace_test.cpp +++ b/src/mongo/util/stacktrace_test.cpp @@ -394,7 +394,8 @@ public: "tid"_attr = ostr(stdx::this_thread::get_id()), "sig"_attr = sig); char storage; - LOGV2(23388, "Local var", "var"_attr = integerToHex(reinterpret_cast<uintptr_t>(&storage))); + LOGV2( + 23388, "Local var", "var"_attr = "{:X}"_format(reinterpret_cast<uintptr_t>(&storage))); } static void tryHandler(void (*handler)(int, siginfo_t*, void*)) { @@ -405,8 +406,8 @@ public: std::fill(buf->begin(), buf->end(), kSentinel); LOGV2(24157, "sigaltstack buf", - "size"_attr = integerToHex(buf->size()), - "data"_attr = integerToHex(reinterpret_cast<uintptr_t>(buf->data()))); + "size"_attr = "{:X}"_format(buf->size()), + "data"_attr = "{:X}"_format(reinterpret_cast<uintptr_t>(buf->data()))); stdx::thread thr([&] { LOGV2(23389, "Thread running", "tid"_attr = ostr(stdx::this_thread::get_id())); { @@ -661,7 +662,7 @@ TEST(StackTrace, BacktraceThroughLibc) { LOGV2(23392, "Frame", "i"_attr = i, - "frame"_attr = integerToHex(reinterpret_cast<uintptr_t>(capture.arr[i]))); + "frame"_attr = "{:X}"_format(reinterpret_cast<uintptr_t>(capture.arr[i]))); } } #endif // mongo stacktrace backend |