You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.6 KiB
62 lines
1.6 KiB
#ifndef DFT_EBAI_H
|
|
#define DFT_EBAI_H
|
|
|
|
#include "dft_common.h"
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#endif
|
|
|
|
/* *
|
|
* brief print ebai log. CNcomment: 上报ebai事件。CNend
|
|
* attention \n
|
|
* NA.
|
|
* param[in] prio log priority. CNcomment: 日志优先级。 CNend
|
|
* param[in] tag log tag. CNcomment: 日志tag。 CNend
|
|
* param[in] fmt formate string. CNcomment: 格式字符串。 CNend
|
|
* param[in] ... variable parameter list. CNcomment: 可变参数列表。 CNend
|
|
* retval ::SUCCESS success. CNcomment: 成功。 CNend
|
|
* retval ::FAILURE failure. CNcomment: 失败。 CNend
|
|
* see \n
|
|
* NA.
|
|
*/
|
|
int dft_ebai_print(short prio, const char *tag, const char *fmt, ...);
|
|
|
|
/*
|
|
* Simplified macro to send a ebai log message using the current LOG_TAG.
|
|
*/
|
|
#ifndef HWEBAILOGD
|
|
#define HWEBAILOGD(tag, ...) \
|
|
((void)dft_ebai_print(DFTEVENT_PRIORITY_DEBUG, tag, __VA_ARGS__))
|
|
#endif
|
|
|
|
#ifndef HWEBAILOGV
|
|
#define HWEBAILOGV(tag, ...) \
|
|
((void)dft_ebai_print(DFTEVENT_PRIORITY_VERBOSE, tag, __VA_ARGS__))
|
|
#endif
|
|
|
|
#ifndef HWEBAILOGW
|
|
#define HWEBAILOGW(tag, ...) \
|
|
((void)dft_ebai_print(DFTEVENT_PRIORITY_WARN, tag, __VA_ARGS__))
|
|
#endif
|
|
|
|
#ifndef HWEBAILOGI
|
|
#define HWEBAILOGI(tag, ...) \
|
|
((void)dft_ebai_print(DFTEVENT_PRIORITY_INFO, tag, __VA_ARGS__))
|
|
#endif
|
|
|
|
#ifndef HWEBAILOGE
|
|
#define HWEBAILOGE(tag, ...) \
|
|
((void)dft_ebai_print(DFTEVENT_PRIORITY_ERROR, tag, __VA_ARGS__))
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|