vold: Switch from LOG -> SLOG
Change-Id: I48ee8bd90b47f5845f069cdf4d1b8ba6ecdb1b39
Signed-off-by: San Mehat <san@google.com>
diff --git a/Process.cpp b/Process.cpp
index 4eff92a..ea5fbc7 100644
--- a/Process.cpp
+++ b/Process.cpp
@@ -182,7 +182,7 @@
struct dirent* de;
if (!(dir = opendir("/proc"))) {
- LOGE("opendir failed (%s)", strerror(errno));
+ SLOGE("opendir failed (%s)", strerror(errno));
return;
}
@@ -198,23 +198,23 @@
char openfile[PATH_MAX];
if (checkFileDescriptorSymLinks(pid, path, openfile, sizeof(openfile))) {
- LOGE("Process %s (%d) has open file %s", name, pid, openfile);
+ SLOGE("Process %s (%d) has open file %s", name, pid, openfile);
} else if (checkFileMaps(pid, path, openfile, sizeof(openfile))) {
- LOGE("Process %s (%d) has open filemap for %s", name, pid, openfile);
+ SLOGE("Process %s (%d) has open filemap for %s", name, pid, openfile);
} else if (checkSymLink(pid, path, "cwd")) {
- LOGE("Process %s (%d) has cwd within %s", name, pid, path);
+ SLOGE("Process %s (%d) has cwd within %s", name, pid, path);
} else if (checkSymLink(pid, path, "root")) {
- LOGE("Process %s (%d) has chroot within %s", name, pid, path);
+ SLOGE("Process %s (%d) has chroot within %s", name, pid, path);
} else if (checkSymLink(pid, path, "exe")) {
- LOGE("Process %s (%d) has executable path within %s", name, pid, path);
+ SLOGE("Process %s (%d) has executable path within %s", name, pid, path);
} else {
continue;
}
if (action == 1) {
- LOGW("Sending SIGHUP to process %d", pid);
+ SLOGW("Sending SIGHUP to process %d", pid);
kill(pid, SIGTERM);
} else if (action == 2) {
- LOGE("Sending SIGKILL to process %d", pid);
+ SLOGE("Sending SIGKILL to process %d", pid);
kill(pid, SIGKILL);
}
}