59 lines
859 B
C
59 lines
859 B
C
/**
|
|
* @file
|
|
* val_log.h
|
|
*
|
|
* @par Project:
|
|
* MFlexVideo
|
|
*
|
|
* @par Description:
|
|
* Log System
|
|
*
|
|
* @par Author:
|
|
* Jackal Chen (mtk02532)
|
|
*
|
|
* @par $Revision: #1 $
|
|
* @par $Modtime:$
|
|
* @par $Log:$
|
|
*
|
|
*/
|
|
|
|
#ifndef _VAL_LOG_H_
|
|
#define _VAL_LOG_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <linux/kernel.h>
|
|
//#include <linux/xlog.h>
|
|
#include <linux/printk.h>
|
|
|
|
|
|
#define MFV_LOG_ERROR //error
|
|
#ifdef MFV_LOG_ERROR
|
|
#define MFV_LOGE(...) pr_err(__VA_ARGS__);
|
|
#else
|
|
#define MFV_LOGE(...)
|
|
#endif
|
|
|
|
#define MFV_LOG_WARNING //warning
|
|
#ifdef MFV_LOG_WARNING
|
|
#define MFV_LOGW(...) pr_warning(__VA_ARGS__);
|
|
#else
|
|
#define MFV_LOGW(...)
|
|
#endif
|
|
|
|
|
|
#define MFV_LOG_DEBUG //debug information
|
|
#ifdef MFV_LOG_DEBUG
|
|
#define MFV_LOGD(...) pr_debug(__VA_ARGS__);
|
|
#else
|
|
#define MFV_LOGD(...)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // #ifndef _VAL_LOG_H_
|