summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-04-14 20:58:08 +0000
committerGreg Clayton <gclayton@apple.com>2015-04-14 20:58:08 +0000
commitbef47e497f6d8851c29c554a9021183f53065ace (patch)
tree8eb2740e0e520049a53f00ec6abdd687b080efa1 /lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
parent21667b64bc4936fab986c1f136c30e98d007083b (diff)
downloadbcm5719-llvm-bef47e497f6d8851c29c554a9021183f53065ace.tar.gz
bcm5719-llvm-bef47e497f6d8851c29c554a9021183f53065ace.zip
Fix printf warnings about a size mismatch on MacOSX.
llvm-svn: 234941
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
index 6674982955c..9d67c386d49 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
@@ -271,7 +271,7 @@ NativeRegisterContextLinux_arm::ReadAllRegisterValues (lldb::DataBufferSP &data_
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::ReadAllRegisterValues (lldb::DataBufferSP &data_
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::WriteAllRegisterValues (const lldb::DataBufferSP
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;
}
OpenPOWER on IntegriCloud