Commit 10c8ea17 authored by topjohnwu's avatar topjohnwu

Fix debug message

parent 7058c8ff
...@@ -133,7 +133,7 @@ void ps(void (*func)(int)) { ...@@ -133,7 +133,7 @@ void ps(void (*func)(int)) {
func(atoi(entry->d_name)); func(atoi(entry->d_name));
} }
} }
closedir(dir); closedir(dir);
} }
...@@ -183,7 +183,7 @@ int create_links(const char *bin, const char *path) { ...@@ -183,7 +183,7 @@ int create_links(const char *bin, const char *path) {
#define DEV_BLOCK "/dev/block" #define DEV_BLOCK "/dev/block"
void unlock_blocks() { void unlock_blocks() {
char path[PATH_MAX]; char path[PATH_MAX];
DIR *dir; DIR *dir;
struct dirent *entry; struct dirent *entry;
...@@ -280,7 +280,7 @@ int mkdir_p(const char *pathname, mode_t mode) { ...@@ -280,7 +280,7 @@ int mkdir_p(const char *pathname, mode_t mode) {
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 DEBUG #ifdef MAGISK_DEBUG
LOGD("bind_mount: %s -> %s\n", from, to); LOGD("bind_mount: %s -> %s\n", from, to);
#else #else
LOGI("bind_mount: %s\n", to); LOGI("bind_mount: %s\n", to);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment