Commit f5c2d724 authored by topjohnwu's avatar topjohnwu

Also log pid and tid

parent 2f5331ab
...@@ -27,6 +27,6 @@ android.injected.testOnly=false ...@@ -27,6 +27,6 @@ android.injected.testOnly=false
kapt.incremental.apt=true kapt.incremental.apt=true
# Magisk # Magisk
magisk.versionCode=21202 magisk.versionCode=21301
magisk.ndkVersion=21d magisk.ndkVersion=21d
magisk.fullNdkVersion=21.3.6528147 magisk.fullNdkVersion=21.3.6528147
...@@ -207,7 +207,7 @@ static int magisk_log(int prio, const char *fmt, va_list ap) { ...@@ -207,7 +207,7 @@ static int magisk_log(int prio, const char *fmt, va_list ap) {
localtime_r(&tv.tv_sec, &tm); localtime_r(&tv.tv_sec, &tm);
size_t len = strftime(buf, sizeof(buf), "%m-%d %T", &tm); size_t len = strftime(buf, sizeof(buf), "%m-%d %T", &tm);
int ms = tv.tv_usec / 1000; int ms = tv.tv_usec / 1000;
len += sprintf(buf + len, ".%03d %c : ", ms, type); len += sprintf(buf + len, ".%03d %*d %*d %c : ", ms, 5, getpid(), 5, gettid(), type);
strcpy(buf + len, fmt); strcpy(buf + len, fmt);
return vfprintf(local_log_file.get(), buf, args); return vfprintf(local_log_file.get(), buf, args);
} }
......
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