Skip to content

Commit e17f267

Browse files
author
Brigid Smith
committed
Updated non-ARM archs to reflect logging changes.
Change-Id: I0af865881c19ea4a57ec1aa9455bc32c08a60d75
1 parent 32cd6ec commit e17f267

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

debuggerd/arm64/machine.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) {
4444
io.iov_len = sizeof(regs);
4545

4646
if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, &io) == -1) {
47-
LOG_ERROR("%s: ptrace failed to get registers: %s\n",
47+
_LOG(log, logtype::ERROR, "%s: ptrace failed to get registers: %s\n",
4848
__func__, strerror(errno));
4949
return;
5050
}
@@ -80,7 +80,7 @@ void dump_registers(log_t* log, pid_t tid) {
8080
io.iov_len = sizeof(r);
8181

8282
if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) {
83-
LOG_ERROR("ptrace error: %s\n", strerror(errno));
83+
_LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno));
8484
return;
8585
}
8686

@@ -105,7 +105,7 @@ void dump_registers(log_t* log, pid_t tid) {
105105
io.iov_len = sizeof(f);
106106

107107
if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRFPREG, (void*) &io) == -1) {
108-
LOG_ERROR("ptrace error: %s\n", strerror(errno));
108+
_LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno));
109109
return;
110110
}
111111

debuggerd/mips/machine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) {
8787
void dump_registers(log_t* log, pid_t tid) {
8888
pt_regs_mips_t r;
8989
if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
90-
LOG_ERROR("cannot get registers: %s\n", strerror(errno));
90+
_LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno));
9191
return;
9292
}
9393

debuggerd/x86/machine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void dump_memory_and_code(log_t*, pid_t) {
3131
void dump_registers(log_t* log, pid_t tid) {
3232
struct pt_regs r;
3333
if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
34-
LOG_ERROR("cannot get registers: %s\n", strerror(errno));
34+
_LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno));
3535
return;
3636
}
3737
_LOG(log, logtype::REGISTERS, " eax %08lx ebx %08lx ecx %08lx edx %08lx\n",

debuggerd/x86_64/machine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void dump_memory_and_code(log_t*, pid_t) {
3333
void dump_registers(log_t* log, pid_t tid) {
3434
struct user_regs_struct r;
3535
if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
36-
LOG_ERROR("cannot get registers: %s\n", strerror(errno));
36+
_LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno));
3737
return;
3838
}
3939
_LOG(log, logtype::REGISTERS, " rax %016lx rbx %016lx rcx %016lx rdx %016lx\n",

0 commit comments

Comments
 (0)