mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 04:25:27 +00:00
Simplify magiskinit logging
This commit is contained in:
parent
54d1207f92
commit
70a3c78ebb
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user