USB: remove warn() macro from usb drivers
USB should not be having it's own printk macros, so remove warn() and use the system-wide standard of dev_warn() wherever possible. In the few places that will not work out, use a basic printk(). Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -40,9 +40,15 @@
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
#define UDSL_ASSERT(x) BUG_ON(!(x))
|
||||
#define UDSL_ASSERT(instance, x) BUG_ON(!(x))
|
||||
#else
|
||||
#define UDSL_ASSERT(x) do { if (!(x)) warn("failed assertion '%s' at line %d", __stringify(x), __LINE__); } while(0)
|
||||
#define UDSL_ASSERT(instance, x) \
|
||||
do { \
|
||||
if (!(x)) \
|
||||
dev_warn(&(instance)->usb_intf->dev, \
|
||||
"failed assertion '%s' at line %d", \
|
||||
__stringify(x), __LINE__); \
|
||||
} while(0)
|
||||
#endif
|
||||
|
||||
#define usb_err(instance, format, arg...) \
|
||||
|
Reference in New Issue
Block a user