Skip to content

Commit 9bb644a

Browse files
committed
log error
1 parent 2220f53 commit 9bb644a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,8 @@ static Status EnsureFDFlags(int fd, int flags) {
218218
static llvm::Error AddPtraceScopeNote(llvm::Error original_error) {
219219
Expected<int> ptrace_scope = GetPtraceScope();
220220
if (auto E = ptrace_scope.takeError()) {
221-
Log *log = GetLog(POSIXLog::Process);
222-
LLDB_LOG(log, "error reading value of ptrace_scope: {0}",
223-
llvm::toString(std::move(E)));
221+
LLDB_LOG_ERROR(GetLog(POSIXLog::Process), std::move(E),
222+
"error reading value of ptrace_scope: {0}");
224223

225224
// The original error is probably more interesting than not being able to
226225
// read or interpret ptrace_scope.

0 commit comments

Comments
 (0)