ppmgr_log.h 632 B

1234567891011121314151617181920212223242526272829
  1. #ifndef OSD_LOG_H
  2. #define OSD_LOG_H
  3. #define DEBUG
  4. #ifdef DEBUG
  5. #define AMLOG 1
  6. #define LOG_LEVEL_VAR amlog_level_ppmgr
  7. #define LOG_MASK_VAR amlog_mask_ppmgr
  8. #endif
  9. #define LOG_LEVEL_HIGH 0x00f
  10. #define LOG_LEVEL_1 0x001
  11. #define LOG_LEVEL_LOW 0x000
  12. #define LOG_LEVEL_DESC \
  13. "[0x00]LOW[0X01]LEVEL1[0xf]HIGH"
  14. #define LOG_MASK_INIT 0x001
  15. #define LOG_MASK_IOCTL 0x002
  16. #define LOG_MASK_HARDWARE 0x004
  17. #define LOG_MASK_CONFIG 0x008
  18. #define LOG_MASK_WORK 0x010
  19. #define LOG_MASK_DESC \
  20. "[0x01]:INIT,[0x02]:IOCTL,[0x04]:HARDWARE,[0x08]LOG_MASK_CONFIG[0x10]LOG_MASK_WORK"
  21. #endif