musb_debug.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) musb_debug.h (f89252ad19a1a93095bdee58a4d857023f069280)
1/*
2 * MUSB OTG driver debug defines
3 *
4 * Copyright 2005 Mentor Graphics Corporation
5 * Copyright (C) 2005-2006 by Texas Instruments
6 * Copyright (C) 2006-2007 Nokia Corporation
7 *
8 * This program is free software; you can redistribute it and/or

--- 28 unchanged lines hidden (view full) ---

37
38#define yprintk(facility, format, args...) \
39 do { printk(facility "%s %d: " format , \
40 __func__, __LINE__ , ## args); } while (0)
41#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
42#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
43#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
44
1/*
2 * MUSB OTG driver debug defines
3 *
4 * Copyright 2005 Mentor Graphics Corporation
5 * Copyright (C) 2005-2006 by Texas Instruments
6 * Copyright (C) 2006-2007 Nokia Corporation
7 *
8 * This program is free software; you can redistribute it and/or

--- 28 unchanged lines hidden (view full) ---

37
38#define yprintk(facility, format, args...) \
39 do { printk(facility "%s %d: " format , \
40 __func__, __LINE__ , ## args); } while (0)
41#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
42#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
43#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
44
45void musb_dbg(struct musb *musb, const char *fmt, ...);
46
45#ifdef CONFIG_DEBUG_FS
46int musb_init_debugfs(struct musb *musb);
47void musb_exit_debugfs(struct musb *musb);
48#else
49static inline int musb_init_debugfs(struct musb *musb)
50{
51 return 0;
52}
53static inline void musb_exit_debugfs(struct musb *musb)
54{
55}
56#endif
57
58#endif /* __MUSB_LINUX_DEBUG_H__ */
47#ifdef CONFIG_DEBUG_FS
48int musb_init_debugfs(struct musb *musb);
49void musb_exit_debugfs(struct musb *musb);
50#else
51static inline int musb_init_debugfs(struct musb *musb)
52{
53 return 0;
54}
55static inline void musb_exit_debugfs(struct musb *musb)
56{
57}
58#endif
59
60#endif /* __MUSB_LINUX_DEBUG_H__ */