diff --git a/debuggerd/arm64/machine.cpp b/debuggerd/arm64/machine.cpp index f3409d59f..48308c3e7 100644 --- a/debuggerd/arm64/machine.cpp +++ b/debuggerd/arm64/machine.cpp @@ -44,7 +44,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) { io.iov_len = sizeof(regs); if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, &io) == -1) { - LOG_ERROR("%s: ptrace failed to get registers: %s\n", + _LOG(log, logtype::ERROR, "%s: ptrace failed to get registers: %s\n", __func__, strerror(errno)); return; } @@ -80,7 +80,7 @@ void dump_registers(log_t* log, pid_t tid) { io.iov_len = sizeof(r); if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) { - LOG_ERROR("ptrace error: %s\n", strerror(errno)); + _LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno)); return; } @@ -105,7 +105,7 @@ void dump_registers(log_t* log, pid_t tid) { io.iov_len = sizeof(f); if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRFPREG, (void*) &io) == -1) { - LOG_ERROR("ptrace error: %s\n", strerror(errno)); + _LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno)); return; } diff --git a/debuggerd/mips/machine.cpp b/debuggerd/mips/machine.cpp index 605275ba2..97834c7fd 100644 --- a/debuggerd/mips/machine.cpp +++ b/debuggerd/mips/machine.cpp @@ -87,7 +87,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) { void dump_registers(log_t* log, pid_t tid) { pt_regs_mips_t r; if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { - LOG_ERROR("cannot get registers: %s\n", strerror(errno)); + _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); return; } diff --git a/debuggerd/x86/machine.cpp b/debuggerd/x86/machine.cpp index 2d553fa4c..57330c1e7 100644 --- a/debuggerd/x86/machine.cpp +++ b/debuggerd/x86/machine.cpp @@ -31,7 +31,7 @@ void dump_memory_and_code(log_t*, pid_t) { void dump_registers(log_t* log, pid_t tid) { struct pt_regs r; if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) { - LOG_ERROR("cannot get registers: %s\n", strerror(errno)); + _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); return; } _LOG(log, logtype::REGISTERS, " eax %08lx ebx %08lx ecx %08lx edx %08lx\n", diff --git a/debuggerd/x86_64/machine.cpp b/debuggerd/x86_64/machine.cpp index 6cb0e8ddb..af4f35ad7 100755 --- a/debuggerd/x86_64/machine.cpp +++ b/debuggerd/x86_64/machine.cpp @@ -33,7 +33,7 @@ void dump_memory_and_code(log_t*, pid_t) { void dump_registers(log_t* log, pid_t tid) { struct user_regs_struct r; if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) { - LOG_ERROR("cannot get registers: %s\n", strerror(errno)); + _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); return; } _LOG(log, logtype::REGISTERS, " rax %016lx rbx %016lx rcx %016lx rdx %016lx\n",