6 /* for use of debug feature */
7 extern debug_info_t
*cio_debug_msg_id
;
8 extern debug_info_t
*cio_debug_trace_id
;
9 extern debug_info_t
*cio_debug_crw_id
;
11 #define CIO_TRACE_EVENT(imp, txt) do { \
12 debug_text_event(cio_debug_trace_id, imp, txt); \
15 #define CIO_MSG_EVENT(imp, args...) do { \
16 debug_sprintf_event(cio_debug_msg_id, imp , ##args); \
19 #define CIO_CRW_EVENT(imp, args...) do { \
20 debug_sprintf_event(cio_debug_crw_id, imp , ##args); \
23 static inline void CIO_HEX_EVENT(int level
, void *data
, int length
)
25 if (unlikely(!cio_debug_trace_id
))
28 debug_event(cio_debug_trace_id
, level
, data
, length
);
29 length
-= cio_debug_trace_id
->buf_size
;
30 data
+= cio_debug_trace_id
->buf_size
;