ccci_util_log.h 872 B

123456789101112131415161718192021222324252627
  1. #ifndef __CCCI_UTIL_LOG_H__
  2. #define __CCCI_UTIL_LOG_H__
  3. /* No MD id message part */
  4. #define CCCI_UTIL_DBG_MSG(fmt, args...)\
  5. do {} while (0)/* pr_debug("[ccci0/util]" fmt, ##args) */
  6. #define CCCI_UTIL_INF_MSG(fmt, args...)\
  7. do {} while (0)/* pr_debug("[ccci0/util]" fmt, ##args) */
  8. #define CCCI_UTIL_ERR_MSG(fmt, args...)\
  9. pr_err("[ccci0/util]" fmt, ##args)
  10. /* With MD id message part */
  11. #define CCCI_UTIL_DBG_MSG_WITH_ID(id, fmt, args...)\
  12. do {} while (0)/* pr_debug("[ccci%d/util]" fmt, (id+1), ##args) */
  13. #define CCCI_UTIL_INF_MSG_WITH_ID(id, fmt, args...)\
  14. do {} while (0)/* pr_debug("[ccci%d/util]" fmt, (id+1), ##args) */
  15. #define CCCI_UTIL_NOTICE_MSG_WITH_ID(id, fmt, args...) \
  16. pr_notice("[ccci%d/util]" fmt, (id+1), ##args)
  17. #define CCCI_UTIL_ERR_MSG_WITH_ID(id, fmt, args...)\
  18. pr_err("[ccci%d/util]" fmt, (id+1), ##args)
  19. #endif /*__CCCI_UTIL_LOG_H__ */