Commit 70a3c78e authored by topjohnwu's avatar topjohnwu

Simplify magiskinit logging

parent 54d1207f
...@@ -38,10 +38,9 @@ using namespace std; ...@@ -38,10 +38,9 @@ using namespace std;
#ifdef MAGISK_DEBUG #ifdef MAGISK_DEBUG
static FILE *kmsg; static FILE *kmsg;
static char kbuf[4096];
static int vprintk(const char *fmt, va_list ap) { static int vprintk(const char *fmt, va_list ap) {
vsprintf(kbuf, fmt, ap); fprintf(kmsg, "magiskinit: ");
return fprintf(kmsg, "magiskinit: %s", kbuf); return vfprintf(kmsg, fmt, ap);
} }
static void setup_klog() { static void setup_klog() {
......
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