Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __DISP_DRV_LOG_H__ |
2 | #define __DISP_DRV_LOG_H__ | |
3 | ||
4 | #ifndef BUILD_UBOOT | |
5 | ||
6 | ///for kernel | |
7 | #include <linux/xlog.h> | |
8 | ||
9 | #define DISP_LOG_PRINT(level, sub_module, fmt, arg...) \ | |
10 | do { \ | |
11 | xlog_printk(level, "DISP/"sub_module, fmt, ##arg); \ | |
12 | }while(0) | |
13 | ||
14 | #define LOG_PRINT(level, module, fmt, arg...) \ | |
15 | do { \ | |
16 | xlog_printk(level, module, fmt, ##arg); \ | |
17 | }while(0) | |
18 | ||
19 | #else | |
20 | ||
21 | ///for UBOOT | |
22 | #include <common.h> | |
23 | ||
24 | #define DISP_LOG_PRINT(level, sub_module, fmt, arg...) \ | |
25 | do { \ | |
26 | printf("[DISP/"sub_module"]"fmt, ##arg); \ | |
27 | }while(0) | |
28 | ||
29 | #define LOG_PRINT(level, module, fmt, arg...) \ | |
30 | do { \ | |
31 | printf("["module"]"fmt, ##arg); \ | |
32 | }while(0) | |
33 | ||
34 | ||
35 | #endif | |
36 | ||
37 | #endif // __DISP_DRV_LOG_H__ |