mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-28 13:44:27 -08:00
Reduce cpp logging overhead
This commit is contained in:
@@ -14,7 +14,7 @@ using namespace std;
|
||||
static int fmt_and_log_with_rs(LogLevel level, const char *fmt, va_list ap) {
|
||||
char buf[4096];
|
||||
int ret = vssprintf(buf, sizeof(buf), fmt, ap);
|
||||
log_with_rs(level, rust::Str(buf, ret));
|
||||
log_with_rs(level, rust::Slice(reinterpret_cast<const uint8_t *>(buf), ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user