dbg_hexdump.h 670 B

1234567891011121314151617181920
  1. #ifndef WIL_DBG_HEXDUMP_H_
  2. #define WIL_DBG_HEXDUMP_H_
  3. #include <linux/printk.h>
  4. #include <linux/dynamic_debug.h>
  5. #if defined(CONFIG_DYNAMIC_DEBUG)
  6. #define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
  7. groupsize, buf, len, ascii) \
  8. dynamic_hex_dump(prefix_str, prefix_type, rowsize, \
  9. groupsize, buf, len, ascii)
  10. #else /* defined(CONFIG_DYNAMIC_DEBUG) */
  11. #define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
  12. groupsize, buf, len, ascii) \
  13. print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize, \
  14. groupsize, buf, len, ascii)
  15. #endif /* defined(CONFIG_DYNAMIC_DEBUG) */
  16. #endif /* WIL_DBG_HEXDUMP_H_ */