[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:
ChenHengming
2015-08-12 09:21:59 +00:00
parent 5428508806
commit cd20477efe

View File

@@ -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;