From 70a3c78ebb0018b904eb233e0bfe702e541cb9b3 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 29 Apr 2019 19:53:22 -0400 Subject: [PATCH] Simplify magiskinit logging --- native/jni/core/init.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/native/jni/core/init.cpp b/native/jni/core/init.cpp index 7814ec1d3..ed6cc5bcc 100644 --- a/native/jni/core/init.cpp +++ b/native/jni/core/init.cpp @@ -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() {