Commit a279a29f authored by 陈伟灿's avatar 陈伟灿

Merge branch 'cwc' into 'master'

【修改内容】添加kk_log.h

See merge request chenweican/k-sdk!14
parents 9aa96c00 bf445418
#ifndef _LOGDEF_H_
#define _LOGDEF_H_
#include <syslog.h>
#define DEBUG_PRINT(info,args...) do { \
syslog(LOG_DEBUG, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#define INFO_PRINT(info,args...) do { \
syslog(LOG_INFO, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#define ERROR_PRINT(info,args...) do { \
syslog(LOG_ERR, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#define WARNING_PRINT(info,args...) do { \
syslog(LOG_WARNING, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment