Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: I8ab66debe4d0c3857a4b80f6f7b6925a352cda87
diff --git a/PppController.cpp b/PppController.cpp
index b50b2b7..d20cc48 100644
--- a/PppController.cpp
+++ b/PppController.cpp
@@ -56,7 +56,7 @@
pid_t pid;
if (mPid) {
- LOGE("Multiple PPPD instances not currently supported");
+ ALOGE("Multiple PPPD instances not currently supported");
errno = EBUSY;
return -1;
}
@@ -68,13 +68,13 @@
}
}
if (it == mTtys->end()) {
- LOGE("Invalid tty '%s' specified", tty);
+ ALOGE("Invalid tty '%s' specified", tty);
errno = -EINVAL;
return -1;
}
if ((pid = fork()) < 0) {
- LOGE("fork failed (%s)", strerror(errno));
+ ALOGE("fork failed (%s)", strerror(errno));
return -1;
}
@@ -94,9 +94,9 @@
// but not getting a connection
if (execl("/system/bin/pppd", "/system/bin/pppd", "-detach", dev, "115200",
lr, "ms-dns", d1, "ms-dns", d2, "lcp-max-configure", "99999", (char *) NULL)) {
- LOGE("execl failed (%s)", strerror(errno));
+ ALOGE("execl failed (%s)", strerror(errno));
}
- LOGE("Should never get here!");
+ ALOGE("Should never get here!");
return 0;
} else {
mPid = pid;
@@ -107,7 +107,7 @@
int PppController::detachPppd(const char *tty) {
if (mPid == 0) {
- LOGE("PPPD already stopped");
+ ALOGE("PPPD already stopped");
return 0;
}
@@ -134,7 +134,7 @@
DIR *d = opendir("/sys/class/tty");
if (!d) {
- LOGE("Error opening /sys/class/tty (%s)", strerror(errno));
+ ALOGE("Error opening /sys/class/tty (%s)", strerror(errno));
return -1;
}