[mpp_log]: Fix compile warning

Change-Id: I482df8722b111df7981f1bd4d7f337f497eadfee
Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
Randy Li
2017-03-10 12:10:02 +08:00
committed by Herman Chen
parent 091567e079
commit ee41717331
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include "os_log.h"
#define LINE_SZ 1024 #define LINE_SZ 1024

View File

@@ -42,7 +42,8 @@ static RK_U32 mpp_log_flag = 0;
static const char *msg_log_warning = "log message is long\n"; static const char *msg_log_warning = "log message is long\n";
static const char *msg_log_nothing = "\n"; static const char *msg_log_nothing = "\n";
void __mpp_log(mpp_log_callback func, const char *tag, const char *fmt, const char *fname, va_list args) static void __mpp_log(mpp_log_callback func, const char *tag, const char *fmt,
const char *fname, va_list args)
{ {
char msg[MPP_LOG_MAX_LEN + 1]; char msg[MPP_LOG_MAX_LEN + 1];
char *tmp = msg; char *tmp = msg;