diff options
author | Christopher Ferris <cferris@google.com> | 2015-06-17 18:35:59 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2015-07-01 13:23:19 -0700 |
commit | b36b5923386be8d74da2767dfc1dc62a0012a655 (patch) | |
tree | afb36c8afc0948c02d2b76e9ea41eab46a8a55c3 /debuggerd/arm/machine.cpp | |
parent | 8c0478309e86c6c6d47124035a23f958fa7f08c4 (diff) | |
download | system_core-b36b5923386be8d74da2767dfc1dc62a0012a655.tar.gz system_core-b36b5923386be8d74da2767dfc1dc62a0012a655.tar.bz2 system_core-b36b5923386be8d74da2767dfc1dc62a0012a655.zip |
Replace all _LOG error calls with ALOGE.
The debuggerd code sometimes calls _LOG(..., logtype::ERROR, ...)
and sometimes ALOGE(). Standardize on ALOGE since the _LOG message
will wind up in the tombstone in weird places, but using ALOGE
will wind up in the logcat portion of the tombstone.
Bug: 21467089
Change-Id: Ie893f5e91d45b48ef3f5864c3a714e60ac848fb3
Diffstat (limited to 'debuggerd/arm/machine.cpp')
-rw-r--r-- | debuggerd/arm/machine.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/debuggerd/arm/machine.cpp b/debuggerd/arm/machine.cpp index b7d69970a..78c230615 100644 --- a/debuggerd/arm/machine.cpp +++ b/debuggerd/arm/machine.cpp @@ -15,12 +15,15 @@ * limitations under the License. */ +#define LOG_TAG "DEBUG" + #include <errno.h> #include <stdint.h> #include <string.h> #include <sys/ptrace.h> #include <backtrace/Backtrace.h> +#include <log/log.h> #include "machine.h" #include "utility.h" @@ -28,7 +31,7 @@ void dump_memory_and_code(log_t* log, Backtrace* backtrace) { pt_regs regs; if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, ®s)) { - _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); + ALOGE("cannot get registers: %s\n", strerror(errno)); return; } @@ -48,7 +51,7 @@ void dump_memory_and_code(log_t* log, Backtrace* backtrace) { void dump_registers(log_t* log, pid_t tid) { pt_regs r; if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { - _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); + ALOGE("cannot get registers: %s\n", strerror(errno)); return; } @@ -68,7 +71,7 @@ void dump_registers(log_t* log, pid_t tid) { user_vfp vfp_regs; if (ptrace(PTRACE_GETVFPREGS, tid, 0, &vfp_regs)) { - _LOG(log, logtype::ERROR, "cannot get FP registers: %s\n", strerror(errno)); + ALOGE("cannot get FP registers: %s\n", strerror(errno)); return; } |