sec_log.h 623 B

1234567891011121314151617
  1. #ifndef LOGGING_H
  2. #define LOGGING_H
  3. /**************************************************************************
  4. * DEBUG CONTROL
  5. **************************************************************************/
  6. #include "sec_osal.h"
  7. #include "sec_osal_light.h"
  8. #define NEED_TO_PRINT(flag) ((flag) == true)
  9. #define SMSG(debug_level, ...) do {if (NEED_TO_PRINT(debug_level)) pr_err(__VA_ARGS__); } while (0)
  10. /**************************************************************************
  11. * EXTERNAL VARIABLE
  12. **************************************************************************/
  13. extern bool bMsg;
  14. #endif /* LOGGING_H */