mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +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 <string.h>
|
||||||
|
|
||||||
#include "mpp_log.h"
|
#include "mpp_log.h"
|
||||||
|
#include "mpp_mem.h"
|
||||||
|
|
||||||
#include "os_log.h"
|
#include "os_log.h"
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ void _mpp_log(const char *tag, const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
const char *buf = fmt;
|
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)
|
if (NULL == tag)
|
||||||
tag = MODULE_TAG;
|
tag = MODULE_TAG;
|
||||||
@@ -68,7 +69,7 @@ void _mpp_err(const char *tag, const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
const char *buf = fmt;
|
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)
|
if (NULL == tag)
|
||||||
tag = MODULE_TAG;
|
tag = MODULE_TAG;
|
||||||
|
Reference in New Issue
Block a user