mdp4_wfd_writeback_util.h 904 B

1234567891011121314151617181920212223242526272829
  1. /* Copyright (c) 2011, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef _WRITEBACK_UTIL_H_
  14. #define _WRITEBACK_UTIL_H_
  15. #define DEBUG
  16. #ifdef DEBUG
  17. #define WRITEBACK_MSG_INFO(fmt...) pr_info(fmt)
  18. #define WRITEBACK_MSG_WARN(fmt...) pr_warning(fmt)
  19. #else
  20. #define WRITEBACK_MSG_INFO(fmt...)
  21. #define WRITEBACK_MSG_WARN(fmt...)
  22. #endif
  23. #define WRITEBACK_MSG_ERR(fmt...) pr_err(fmt)
  24. #define WRITEBACK_MSG_CRIT(fmt...) pr_crit(fmt)
  25. #endif