[Lldb-commits] [lldb] 0f32d00 - [LLDB] Silence warnings in cli-wrapper-mpxtable.cpp
Muhammad Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Sun Jun 27 19:41:32 PDT 2021
Author: Muhammad Omair Javaid
Date: 2021-06-28T02:36:14Z
New Revision: 0f32d0034c7b9751b1ce7a89469328ac932faab8
URL: https://github.com/llvm/llvm-project/commit/0f32d0034c7b9751b1ce7a89469328ac932faab8
DIFF: https://github.com/llvm/llvm-project/commit/0f32d0034c7b9751b1ce7a89469328ac932faab8.diff
LOG: [LLDB] Silence warnings in cli-wrapper-mpxtable.cpp
cli-wrapper-mpxtable.cpp was emitting warnings from printfs of
uint64_t on 32 bit arm build. This patch makes affected printfs
in cli-wrapper-mpxtable.cpp portable accross targets variants.
Added:
Modified:
lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
Removed:
################################################################################
diff --git a/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp b/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
index d2ef0445bc671..b19d8b7387bb1 100644
--- a/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
+++ b/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
@@ -64,12 +64,12 @@ static void PrintBTEntry(lldb::addr_t lbound, lldb::addr_t ubound,
const lldb::addr_t one_cmpl32 = ~((uint32_t)0);
if ((lbound == one_cmpl64 || one_cmpl32) && ubound == 0) {
- result.Printf("Null bounds on map: pointer value = 0x%lx\n", value);
+ result.Printf("Null bounds on map: pointer value = 0x%" PRIu64 "\n", value);
} else {
- result.Printf(" lbound = 0x%lx,", lbound);
- result.Printf(" ubound = 0x%lx", ubound);
- result.Printf(" (pointer value = 0x%lx,", value);
- result.Printf(" metadata = 0x%lx)\n", meta);
+ result.Printf(" lbound = 0x%" PRIu64 ",", lbound);
+ result.Printf(" ubound = 0x%" PRIu64 , ubound);
+ result.Printf(" (pointer value = 0x%" PRIu64 ",", value);
+ result.Printf(" metadata = 0x%" PRIu64 ")\n", meta);
}
}
More information about the lldb-commits
mailing list