This source file includes following definitions.
- musb_init_debugfs
- musb_exit_debugfs
1
2
3
4
5
6
7
8
9
10 #ifndef __MUSB_LINUX_DEBUG_H__
11 #define __MUSB_LINUX_DEBUG_H__
12
13 #define yprintk(facility, format, args...) \
14 do { printk(facility "%s %d: " format , \
15 __func__, __LINE__ , ## args); } while (0)
16 #define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
17 #define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
18 #define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
19
20 void musb_dbg(struct musb *musb, const char *fmt, ...);
21
22 #ifdef CONFIG_DEBUG_FS
23 void musb_init_debugfs(struct musb *musb);
24 void musb_exit_debugfs(struct musb *musb);
25 #else
26 static inline void musb_init_debugfs(struct musb *musb)
27 {
28 }
29 static inline void musb_exit_debugfs(struct musb *musb)
30 {
31 }
32 #endif
33
34 #endif