Skip to content

Commit 0f32d00

Browse files
committed
[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.
1 parent 2ddca68 commit 0f32d00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ static void PrintBTEntry(lldb::addr_t lbound, lldb::addr_t ubound,
6464
const lldb::addr_t one_cmpl32 = ~((uint32_t)0);
6565

6666
if ((lbound == one_cmpl64 || one_cmpl32) && ubound == 0) {
67-
result.Printf("Null bounds on map: pointer value = 0x%lx\n", value);
67+
result.Printf("Null bounds on map: pointer value = 0x%" PRIu64 "\n", value);
6868
} else {
69-
result.Printf(" lbound = 0x%lx,", lbound);
70-
result.Printf(" ubound = 0x%lx", ubound);
71-
result.Printf(" (pointer value = 0x%lx,", value);
72-
result.Printf(" metadata = 0x%lx)\n", meta);
69+
result.Printf(" lbound = 0x%" PRIu64 ",", lbound);
70+
result.Printf(" ubound = 0x%" PRIu64 , ubound);
71+
result.Printf(" (pointer value = 0x%" PRIu64 ",", value);
72+
result.Printf(" metadata = 0x%" PRIu64 ")\n", meta);
7373
}
7474
}
7575

0 commit comments

Comments
 (0)