diff options
| author | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
|---|---|---|
| committer | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
| commit | d2e1446d81725c351dc73a03b397ce043fb18452 (patch) | |
| tree | 4dbc616b7f92aea39cd697a9084205ddb805e344 /include/linux/vcodec/kernel | |
first commit
Diffstat (limited to 'include/linux/vcodec/kernel')
| -rw-r--r-- | include/linux/vcodec/kernel/val_log.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/include/linux/vcodec/kernel/val_log.h b/include/linux/vcodec/kernel/val_log.h new file mode 100644 index 000000000..40c9bf8d5 --- /dev/null +++ b/include/linux/vcodec/kernel/val_log.h @@ -0,0 +1,65 @@ +/** + * @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 + +#define MFV_LOG_INFO //info information +#ifdef MFV_LOG_INFO +#define MFV_LOGI(...) pr_info(__VA_ARGS__); +#else +#define MFV_LOGI(...) +#endif + +#ifdef __cplusplus +} +#endif + +#endif // #ifndef _VAL_LOG_H_ |
