Make sure all logging ends with newline

This commit is contained in:
topjohnwu
2020-12-02 00:55:22 -08:00
parent a848f10bba
commit 797ba4fbf4
5 changed files with 8 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ static void mount_mirrors() {
char buf1[4096];
char buf2[4096];
LOGI("* Mounting mirrors");
LOGI("* Mounting mirrors\n");
parse_mnt("/proc/mounts", [&](mntent *me) {
struct stat st;

View File

@@ -359,7 +359,7 @@ bool validate_manager(string &pkg, int userid, struct stat *st) {
// Check the official package name
sprintf(app_path, "%s/%d/" JAVA_PACKAGE_NAME, APP_DATA_DIR, userid);
if (stat(app_path, st)) {
LOGE("su: cannot find manager");
LOGE("su: cannot find manager\n");
memset(st, 0, sizeof(*st));
pkg.clear();
return false;

View File

@@ -82,7 +82,7 @@ int recv_fd(int sockfd) {
cmsg->cmsg_level != SOL_SOCKET ||
cmsg->cmsg_type != SCM_RIGHTS) {
error:
LOGE("unable to read fd");
LOGE("unable to read fd\n");
exit(-1);
}