[Lldb-commits] [lldb] r234941 - Fix printf warnings about a size mismatch on MacOSX.
Greg Clayton
gclayton at apple.com
Tue Apr 14 13:58:08 PDT 2015
Author: gclayton
Date: Tue Apr 14 15:58:08 2015
New Revision: 234941
URL: http://llvm.org/viewvc/llvm-project?rev=234941&view=rev
Log:
Fix printf warnings about a size mismatch on MacOSX.
Modified:
lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
Modified: lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp?rev=234941&r1=234940&r2=234941&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp Tue Apr 14 15:58:08 2015
@@ -271,7 +271,7 @@ NativeRegisterContextLinux_arm::ReadAllR
data_sp.reset (new DataBufferHeap (REG_CONTEXT_SIZE, 0));
if (!data_sp)
- return Error ("failed to allocate DataBufferHeap instance of size %" PRIu64, REG_CONTEXT_SIZE);
+ return Error ("failed to allocate DataBufferHeap instance of size %" PRIu64, (uint64_t)REG_CONTEXT_SIZE);
if (!ReadGPR ())
{
@@ -288,7 +288,7 @@ NativeRegisterContextLinux_arm::ReadAllR
uint8_t *dst = data_sp->GetBytes ();
if (dst == nullptr)
{
- error.SetErrorStringWithFormat ("DataBufferHeap instance of size %" PRIu64 " returned a null pointer", REG_CONTEXT_SIZE);
+ error.SetErrorStringWithFormat ("DataBufferHeap instance of size %" PRIu64 " returned a null pointer", (uint64_t)REG_CONTEXT_SIZE);
return error;
}
@@ -312,7 +312,7 @@ NativeRegisterContextLinux_arm::WriteAll
if (data_sp->GetByteSize () != REG_CONTEXT_SIZE)
{
- error.SetErrorStringWithFormat ("NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched data size, expected %" PRIu64 ", actual %" PRIu64, __FUNCTION__, REG_CONTEXT_SIZE, data_sp->GetByteSize ());
+ error.SetErrorStringWithFormat ("NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched data size, expected %" PRIu64 ", actual %" PRIu64, __FUNCTION__, (uint64_t)REG_CONTEXT_SIZE, data_sp->GetByteSize ());
return error;
}
More information about the lldb-commits
mailing list