mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-10-06 04:55:13 -04:00
Reduce cpp logging overhead
This commit is contained in:
1 parent
7518092ad2
commit
583ffc8177
4 files changed
+5
-5
No files matched your search
@@ -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