summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-03 18:50:41 +0000
committerPavel Labath <labath@google.com>2017-02-03 18:50:41 +0000
commitea1b6b17dc0b92b984b311b5b2c0a572f3596868 (patch)
tree6d98e053df2911f8194d6f727336557bc8a7e595 /lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
parentc3e3f59d1249d96160eccd287381396783f426a5 (diff)
downloadbcm5719-llvm-ea1b6b17dc0b92b984b311b5b2c0a572f3596868.tar.gz
bcm5719-llvm-ea1b6b17dc0b92b984b311b5b2c0a572f3596868.zip
Use LLDB_LOG in NativeRegisterContextLinux*** files
llvm-svn: 294023
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
index 580d2f952ad..be256e97221 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
@@ -171,10 +171,7 @@ Error NativeRegisterContextLinux::DoReadRegisterValue(uint32_t offset,
// First cast to an unsigned of the same size to avoid sign extension.
value.SetUInt(static_cast<unsigned long>(data), size);
- if (log)
- log->Printf("NativeRegisterContextLinux::%s() reg %s: 0x%lx", __FUNCTION__,
- reg_name, data);
-
+ LLDB_LOG(log, "{0}: {1:x}", reg_name, data);
return error;
}
@@ -183,10 +180,7 @@ Error NativeRegisterContextLinux::DoWriteRegisterValue(
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_REGISTERS));
void *buf = reinterpret_cast<void *>(value.GetAsUInt64());
-
- if (log)
- log->Printf("NativeRegisterContextLinux::%s() reg %s: %p", __FUNCTION__,
- reg_name, buf);
+ LLDB_LOG(log, "{0}: {1}", reg_name, buf);
return NativeProcessLinux::PtraceWrapper(
PTRACE_POKEUSER, m_thread.GetID(), reinterpret_cast<void *>(offset), buf);
OpenPOWER on IntegriCloud