summaryrefslogtreecommitdiff
path: root/src/mongo/util/stacktrace_test.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-09-09 21:32:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-15 00:42:05 +0000
commit58828b0ce9556ee9cb38c484d1226663a0dcd993 (patch)
treedfea448799d9bd4328114199a9767dd18d045be3 /src/mongo/util/stacktrace_test.cpp
parent22a77301a5b63b9bb7ef6dd73eabb4865c63a921 (diff)
downloadmongo-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.cpp9
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