Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Bug: 5449033
Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
diff --git a/nexus/WifiController.cpp b/nexus/WifiController.cpp
index e11f668..cedd013 100644
--- a/nexus/WifiController.cpp
+++ b/nexus/WifiController.cpp
@@ -111,7 +111,7 @@
ALOGI("Powering up");
sendStatusBroadcast("Powering up WiFi hardware");
if (powerUp()) {
- LOGE("Powerup failed (%s)", strerror(errno));
+ ALOGE("Powerup failed (%s)", strerror(errno));
return -1;
}
}
@@ -120,7 +120,7 @@
ALOGI("Loading driver");
sendStatusBroadcast("Loading WiFi driver");
if (loadKernelModule(mModulePath, mModuleArgs)) {
- LOGE("Kernel module load failed (%s)", strerror(errno));
+ ALOGE("Kernel module load failed (%s)", strerror(errno));
goto out_powerdown;
}
}
@@ -129,7 +129,7 @@
ALOGI("Loading firmware");
sendStatusBroadcast("Loading WiFI firmware");
if (loadFirmware()) {
- LOGE("Firmware load failed (%s)", strerror(errno));
+ ALOGE("Firmware load failed (%s)", strerror(errno));
goto out_powerdown;
}
}
@@ -138,13 +138,13 @@
ALOGI("Starting WPA Supplicant");
sendStatusBroadcast("Starting WPA Supplicant");
if (mSupplicant->start()) {
- LOGE("Supplicant start failed (%s)", strerror(errno));
+ ALOGE("Supplicant start failed (%s)", strerror(errno));
goto out_unloadmodule;
}
}
if (Controller::bindInterface(mSupplicant->getInterfaceName())) {
- LOGE("Error binding interface (%s)", strerror(errno));
+ ALOGE("Error binding interface (%s)", strerror(errno));
goto out_unloadmodule;
}
@@ -173,13 +173,13 @@
out_unloadmodule:
if (mModuleName[0] != '\0' && !isKernelModuleLoaded(mModuleName)) {
if (unloadKernelModule(mModuleName)) {
- LOGE("Unable to unload module after failure!");
+ ALOGE("Unable to unload module after failure!");
}
}
out_powerdown:
if (powerDown()) {
- LOGE("Unable to powerdown after failure!");
+ ALOGE("Unable to powerdown after failure!");
}
return -1;
}
@@ -218,7 +218,7 @@
ALOGD("Stopping Supplicant driver");
if (mSupplicant->stopDriver()) {
- LOGE("Error stopping driver (%s)", strerror(errno));
+ ALOGE("Error stopping driver (%s)", strerror(errno));
pthread_mutex_unlock(&mLock);
return -1;
}
@@ -226,7 +226,7 @@
ALOGD("Resuming");
if (mSupplicant->startDriver()) {
- LOGE("Error resuming driver (%s)", strerror(errno));
+ ALOGE("Error resuming driver (%s)", strerror(errno));
pthread_mutex_unlock(&mLock);
return -1;
}
@@ -269,7 +269,7 @@
if (mSupplicant->isStarted()) {
sendStatusBroadcast("Stopping WPA Supplicant");
if (mSupplicant->stop()) {
- LOGE("Supplicant stop failed (%s)", strerror(errno));
+ ALOGE("Supplicant stop failed (%s)", strerror(errno));
return -1;
}
} else
@@ -278,7 +278,7 @@
if (mModuleName[0] != '\0' && isKernelModuleLoaded(mModuleName)) {
sendStatusBroadcast("Unloading WiFi driver");
if (unloadKernelModule(mModuleName)) {
- LOGE("Unable to unload module (%s)", strerror(errno));
+ ALOGE("Unable to unload module (%s)", strerror(errno));
return -1;
}
}
@@ -286,7 +286,7 @@
if (isPoweredUp()) {
sendStatusBroadcast("Powering down WiFi hardware");
if (powerDown()) {
- LOGE("Powerdown failed (%s)", strerror(errno));
+ ALOGE("Powerdown failed (%s)", strerror(errno));
return -1;
}
}
@@ -470,7 +470,7 @@
char *reply;
if (!(reply = (char *) malloc(4096))) {
- LOGE("Out of memory");
+ ALOGE("Out of memory");
return;
}
@@ -609,7 +609,7 @@
pthread_mutex_lock(&mLock);
int rssi;
if (mSupplicant->getRssi(&rssi)) {
- LOGE("Failed to get rssi (%s)", strerror(errno));
+ ALOGE("Failed to get rssi (%s)", strerror(errno));
pthread_mutex_unlock(&mLock);
return;
}