diff --git a/osal/mpp_log.cpp b/osal/mpp_log.cpp index 4e24e31b..c17e7dc6 100644 --- a/osal/mpp_log.cpp +++ b/osal/mpp_log.cpp @@ -21,6 +21,7 @@ #include #include "mpp_log.h" +#include "mpp_mem.h" #include "os_log.h" @@ -42,7 +43,7 @@ void _mpp_log(const char *tag, const char *fmt, ...) { va_list args; const char *buf = fmt; - RK_S32 len = strnlen(fmt, MPP_LOG_MAX_LEN); + size_t len = strnlen(fmt, MPP_LOG_MAX_LEN); if (NULL == tag) tag = MODULE_TAG; @@ -68,7 +69,7 @@ void _mpp_err(const char *tag, const char *fmt, ...) { va_list args; const char *buf = fmt; - RK_S32 len = strnlen(fmt, MPP_LOG_MAX_LEN); + size_t len = strnlen(fmt, MPP_LOG_MAX_LEN); if (NULL == tag) tag = MODULE_TAG;