mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[mpp_log]: fix snprintf compile error and size_t warning on windows
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@89 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#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;
|
||||
|
Reference in New Issue
Block a user