Simplify magiskinit logging
This commit is contained in:
parent
54d1207f92
commit
70a3c78ebb
@ -38,10 +38,9 @@ using namespace std;
|
||||
|
||||
#ifdef MAGISK_DEBUG
|
||||
static FILE *kmsg;
|
||||
static char kbuf[4096];
|
||||
static int vprintk(const char *fmt, va_list ap) {
|
||||
vsprintf(kbuf, fmt, ap);
|
||||
return fprintf(kmsg, "magiskinit: %s", kbuf);
|
||||
fprintf(kmsg, "magiskinit: ");
|
||||
return vfprintf(kmsg, fmt, ap);
|
||||
}
|
||||
|
||||
static void setup_klog() {
|
||||
|
Loading…
Reference in New Issue
Block a user