14 #define QDIO_DBF_LEN 16
22 return (level <= dbf_grp->level);
33 #define DBF_EVENT(text...) \
35 char debug_buffer[QDIO_DBF_LEN]; \
36 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
37 debug_text_event(qdio_dbf_setup, DBF_ERR, debug_buffer); \
40 static inline void DBF_HEX(
void *
addr,
int len)
43 debug_event(qdio_dbf_setup,
DBF_ERR, addr, len);
49 #define DBF_ERROR(text...) \
51 char debug_buffer[QDIO_DBF_LEN]; \
52 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
53 debug_text_event(qdio_dbf_error, DBF_ERR, debug_buffer); \
56 static inline void DBF_ERROR_HEX(
void *
addr,
int len)
59 debug_event(qdio_dbf_error,
DBF_ERR, addr, len);
65 #define DBF_DEV_EVENT(level, device, text...) \
67 char debug_buffer[QDIO_DBF_LEN]; \
68 if (qdio_dbf_passes(device->debug_area, level)) { \
69 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
70 debug_text_event(device->debug_area, level, debug_buffer); \
78 debug_event(dev->
debug_area, level, addr, len);