From 47ad1fe18becee21875bf9e7a23b9f429ea17b43 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 10 Jul 2025 11:57:21 +0700 Subject: [PATCH] [CHERIoT] Fix printf formatter warnings. --- lldb/source/Core/DumpDataExtractor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lldb/source/Core/DumpDataExtractor.cpp b/lldb/source/Core/DumpDataExtractor.cpp index 32532ab4680f4..bf5dfb5d065da 100644 --- a/lldb/source/Core/DumpDataExtractor.cpp +++ b/lldb/source/Core/DumpDataExtractor.cpp @@ -516,8 +516,10 @@ lldb::offset_t lldb_private::DumpDataExtractor( uint64_t top = ((a_top_top << 9) + T) << e; uint64_t len = top - base; - s->Printf("0x%08x (v:? 0x%08llx-0x%08llx l:0x%llx o:0x%x%s p: %s)", addr, - base, top, len, otype, otype_str.data(), perm_string.c_str()); + s->Printf("0x%08" PRIx32 " (v:? 0x%08" PRIx64 "-0x%08" PRIx64 + " l:0x%" PRIx64 " o:0x%x%s p: %s)", + addr, base, top, len, otype, otype_str.data(), + perm_string.c_str()); break; }