mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-22 08:48:30 +00:00
Slightly change logging style
This commit is contained in:
parent
3dc22db265
commit
930c82316a
@ -274,7 +274,7 @@ static void clone_skeleton(struct node_entry *node) {
|
|||||||
char *con;
|
char *con;
|
||||||
xstat(full_path, &s);
|
xstat(full_path, &s);
|
||||||
getfilecon(full_path, &con);
|
getfilecon(full_path, &con);
|
||||||
LOGI("tmpfs: %s\n", full_path);
|
LOGI("mnt_tmpfs : %s\n", full_path);
|
||||||
xmount("tmpfs", full_path, "tmpfs", 0, NULL);
|
xmount("tmpfs", full_path, "tmpfs", 0, NULL);
|
||||||
chmod(full_path, s.st_mode & 0777);
|
chmod(full_path, s.st_mode & 0777);
|
||||||
chown(full_path, s.st_uid, s.st_gid);
|
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 (child->parent->parent == NULL && strcmp(child->name, "vendor") == 0) {
|
||||||
if (IS_LNK(child)) {
|
if (IS_LNK(child)) {
|
||||||
cp_afc(MIRRDIR "/system/vendor", "/system/vendor");
|
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
|
// Skip
|
||||||
continue;
|
continue;
|
||||||
@ -315,9 +315,9 @@ static void clone_skeleton(struct node_entry *node) {
|
|||||||
// Copy symlinks directly
|
// Copy symlinks directly
|
||||||
cp_afc(buf2, buf);
|
cp_afc(buf2, buf);
|
||||||
#ifdef MAGISK_DEBUG
|
#ifdef MAGISK_DEBUG
|
||||||
LOGI("cplink: %s -> %s\n",buf2, buf);
|
LOGI("creat_link: %s <- %s\n",buf, buf2);
|
||||||
#else
|
#else
|
||||||
LOGI("cplink: %s\n", buf);
|
LOGI("creat_link: %s\n", buf);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
snprintf(buf, PATH_MAX, "%s/%s", full_path, child->name);
|
snprintf(buf, PATH_MAX, "%s/%s", full_path, child->name);
|
||||||
|
@ -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 bind_mount(const char *from, const char *to) {
|
||||||
int ret = xmount(from, to, NULL, MS_BIND, NULL);
|
int ret = xmount(from, to, NULL, MS_BIND, NULL);
|
||||||
#ifdef MAGISK_DEBUG
|
#ifdef MAGISK_DEBUG
|
||||||
LOGI("bind_mount: %s -> %s\n", from, to);
|
LOGI("bind_mount: %s <- %s\n", to, from);
|
||||||
#else
|
#else
|
||||||
LOGI("bind_mount: %s\n", to);
|
LOGI("bind_mount: %s\n", to);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user