summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-04-03 22:33:04 +0200
committerthat <github@that.at>2015-04-03 22:33:04 +0200
commit2252d24c964df89189143e8d09626e9455e0f580 (patch)
treed877ec5b6918f2cbbc090692838e38f9130e06a6 /twrp-functions.cpp
parentbootloader: fix crash with empty lines in /cache/recovery/command (diff)
downloadandroid_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.tar
android_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.tar.gz
android_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.tar.bz2
android_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.tar.lz
android_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.tar.xz
android_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.tar.zst
android_bootable_recovery-2252d24c964df89189143e8d09626e9455e0f580.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index f773df6d0..b6f9c56fc 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -125,19 +125,19 @@ int TWFunc::Wait_For_Child(pid_t pid, int *status, string Child_Name) {
rc_pid = waitpid(pid, status, 0);
if (rc_pid > 0) {
if (WIFSIGNALED(*status)) {
- LOGINFO("%s process ended with signal: %d\n", Child_Name.c_str(), WTERMSIG(*status)); // Seg fault or some other non-graceful termination
+ LOGERR("%s process ended with signal: %d\n", Child_Name.c_str(), WTERMSIG(*status)); // Seg fault or some other non-graceful termination
return -1;
} else if (WEXITSTATUS(*status) == 0) {
LOGINFO("%s process ended with RC=%d\n", Child_Name.c_str(), WEXITSTATUS(*status)); // Success
} else {
- LOGINFO("%s process ended with ERROR=%d\n", Child_Name.c_str(), WEXITSTATUS(*status)); // Graceful exit, but there was an error
+ LOGERR("%s process ended with ERROR=%d\n", Child_Name.c_str(), WEXITSTATUS(*status)); // Graceful exit, but there was an error
return -1;
}
} else { // no PID returned
if (errno == ECHILD)
- LOGINFO("%s no child process exist\n", Child_Name.c_str());
+ LOGERR("%s no child process exist\n", Child_Name.c_str());
else {
- LOGINFO("%s Unexpected error\n", Child_Name.c_str());
+ LOGERR("%s Unexpected error %d\n", Child_Name.c_str(), errno);
return -1;
}
}