修复c api日志打印bug

This commit is contained in:
ziyue 2022-01-10 19:57:26 +08:00
parent 09ac333e35
commit 6636482bcf

View File

@ -47,7 +47,7 @@ API_EXPORT char* API_CALL mk_util_hex_dump(const void *buf, int len){
API_EXPORT void API_CALL mk_log_printf(int level, const char *file, const char *function, int line, const char *fmt, ...) { API_EXPORT void API_CALL mk_log_printf(int level, const char *file, const char *function, int line, const char *fmt, ...) {
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
toolkit::LoggerWrapper::printLog(getLogger(), level, file, function, line, fmt, ap); toolkit::LoggerWrapper::printLogV(getLogger(), level, file, function, line, fmt, ap);
va_end(ap); va_end(ap);
} }