Linux 5.1.15
[linux/fpc-iii.git] / drivers / s390 / cio / cio_debug.h
blob7bdbe73707c2c09bcbea62416fe4ddf92d27d49a
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef CIO_DEBUG_H
3 #define CIO_DEBUG_H
5 #include <asm/debug.h>
7 /* for use of debug feature */
8 extern debug_info_t *cio_debug_msg_id;
9 extern debug_info_t *cio_debug_trace_id;
10 extern debug_info_t *cio_debug_crw_id;
12 #define CIO_TRACE_EVENT(imp, txt) do { \
13 debug_text_event(cio_debug_trace_id, imp, txt); \
14 } while (0)
16 #define CIO_MSG_EVENT(imp, args...) do { \
17 debug_sprintf_event(cio_debug_msg_id, imp , ##args); \
18 } while (0)
20 #define CIO_CRW_EVENT(imp, args...) do { \
21 debug_sprintf_event(cio_debug_crw_id, imp , ##args); \
22 } while (0)
24 static inline void CIO_HEX_EVENT(int level, void *data, int length)
26 debug_event(cio_debug_trace_id, level, data, length);
29 #endif