[Lldb-commits] [lldb] r243013 - [NativeProcessLinux] Fix a couple of warnings
Pavel Labath
labath at google.com
Thu Jul 23 06:07:38 PDT 2015
Author: labath
Date: Thu Jul 23 08:07:37 2015
New Revision: 243013
URL: http://llvm.org/viewvc/llvm-project?rev=243013&view=rev
Log:
[NativeProcessLinux] Fix a couple of warnings
Modified:
lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp
Modified: lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp?rev=243013&r1=243012&r2=243013&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp Thu Jul 23 08:07:37 2015
@@ -2610,8 +2610,8 @@ NativeProcessLinux::ReadMemory (lldb::ad
// 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::ad
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)
{
More information about the lldb-commits
mailing list