From 930c82316ada3dbf7a1f91f2e81275aa50cb2986 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 31 Dec 2017 21:54:39 +0800 Subject: [PATCH] Slightly change logging style --- core/jni/core/bootstages.c | 8 ++++---- core/jni/utils/misc.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/jni/core/bootstages.c b/core/jni/core/bootstages.c index 1215d2424..a49bd7161 100644 --- a/core/jni/core/bootstages.c +++ b/core/jni/core/bootstages.c @@ -274,7 +274,7 @@ static void clone_skeleton(struct node_entry *node) { char *con; xstat(full_path, &s); getfilecon(full_path, &con); - LOGI("tmpfs: %s\n", full_path); + LOGI("mnt_tmpfs : %s\n", full_path); xmount("tmpfs", full_path, "tmpfs", 0, NULL); chmod(full_path, s.st_mode & 0777); chown(full_path, s.st_uid, s.st_gid); @@ -295,7 +295,7 @@ static void clone_skeleton(struct node_entry *node) { if (child->parent->parent == NULL && strcmp(child->name, "vendor") == 0) { if (IS_LNK(child)) { cp_afc(MIRRDIR "/system/vendor", "/system/vendor"); - LOGI("cplink: %s -> %s\n", MIRRDIR "/system/vendor", "/system/vendor"); + LOGI("creat_link: %s <- %s\n", "/system/vendor", MIRRDIR "/system/vendor"); } // Skip continue; @@ -315,9 +315,9 @@ static void clone_skeleton(struct node_entry *node) { // Copy symlinks directly cp_afc(buf2, buf); #ifdef MAGISK_DEBUG - LOGI("cplink: %s -> %s\n",buf2, buf); + LOGI("creat_link: %s <- %s\n",buf, buf2); #else - LOGI("cplink: %s\n", buf); + LOGI("creat_link: %s\n", buf); #endif } else { snprintf(buf, PATH_MAX, "%s/%s", full_path, child->name); diff --git a/core/jni/utils/misc.c b/core/jni/utils/misc.c index 73fb8094b..1822ee456 100644 --- a/core/jni/utils/misc.c +++ b/core/jni/utils/misc.c @@ -282,7 +282,7 @@ int exec_command(int err, int *fd, void (*setupenv)(struct vector*), const char int bind_mount(const char *from, const char *to) { int ret = xmount(from, to, NULL, MS_BIND, NULL); #ifdef MAGISK_DEBUG - LOGI("bind_mount: %s -> %s\n", from, to); + LOGI("bind_mount: %s <- %s\n", to, from); #else LOGI("bind_mount: %s\n", to); #endif