diff options
author | Pavel Labath <labath@google.com> | 2015-07-23 13:07:37 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-07-23 13:07:37 +0000 |
commit | 79203995fa14d4bfa188b483783c00b7d6a98107 (patch) | |
tree | 8590926bdb388bb67be35339de6640bfe2b011f2 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
parent | ed6023a964365ea5459e9293de99d78b72555f01 (diff) | |
download | bcm5719-llvm-79203995fa14d4bfa188b483783c00b7d6a98107.tar.gz bcm5719-llvm-79203995fa14d4bfa188b483783c00b7d6a98107.zip |
[NativeProcessLinux] Fix a couple of warnings
llvm-svn: 243013
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index ec81727ea61..69ff0aa27f6 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -2610,8 +2610,8 @@ NativeProcessLinux::ReadMemory (lldb::addr_t addr, void *buf, size_t size, size_ // Format bytes from data by moving into print_dst for log output for (unsigned i = 0; i < remainder; ++i) print_dst |= (((data >> i*8) & 0xFF) << i*8); - log->Printf ("NativeProcessLinux::%s() [%p]:0x%lx (0x%lx)", __FUNCTION__, - (void*)addr, print_dst, (unsigned long)data); + log->Printf ("NativeProcessLinux::%s() [0x%" PRIx64 "]:0x%" PRIx64 " (0x%" PRIx64 ")", + __FUNCTION__, addr, uint64_t(print_dst), uint64_t(data)); } addr += k_ptrace_word_size; dst += k_ptrace_word_size; @@ -2641,7 +2641,7 @@ NativeProcessLinux::WriteMemory(lldb::addr_t addr, const void *buf, size_t size, if (log) ProcessPOSIXLog::IncNestLevel(); if (log && ProcessPOSIXLog::AtTopNestLevel() && log->GetMask().Test(POSIX_LOG_MEMORY)) - log->Printf ("NativeProcessLinux::%s(%p, %p, %" PRIu64 ")", __FUNCTION__, (void*)addr, buf, size); + log->Printf ("NativeProcessLinux::%s(0x%" PRIx64 ", %p, %zu)", __FUNCTION__, addr, buf, size); for (bytes_written = 0; bytes_written < size; bytes_written += remainder) { |