From d8cc6bc3254099df95cf22b4e74d851d92ab254e Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 12 Nov 2014 19:51:43 +0000 Subject: Use PRIx64 when printing addr_t's. Don't need to force full-width 0 padding with addresses that aren't designed to be column-aligned across multiple lines. llvm-svn: 221810 --- lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process') diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp index c6951b46d9b..8ecdea7c091 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp @@ -600,7 +600,7 @@ RegisterContextLLDB::InitializeNonZerothFrame() cfa_offset = active_row->GetCFAOffset (); - UnwindLogMsg ("m_cfa = 0x%16.16" PRIx64 " (cfa_offset = %i)", m_cfa, cfa_offset); + UnwindLogMsg ("m_cfa = 0x%" PRIx64 " (cfa_offset = %i)", m_cfa, cfa_offset); // A couple of sanity checks.. if (m_cfa == LLDB_INVALID_ADDRESS || m_cfa == (addr_t)cfa_offset || m_cfa == (addr_t)cfa_offset + 1) @@ -1503,7 +1503,7 @@ RegisterContextLLDB::ReadCFAValueForRow (lldb::RegisterKind row_register_kind, reg_info->byte_size, reg_value); value = reg_value.GetAsUInt64(); - UnwindLogMsg("dereferenced address: 0x%16.16" PRIx64 " yields: %lx", tmp, value); + UnwindLogMsg("dereferenced address: 0x%" PRIx64 " yields: %" PRIx64, tmp, value); return error.Success(); } value = value + row->GetCFAOffset (); -- cgit v1.2.3