aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/file_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/file_storage.c')
-rw-r--r--drivers/usb/gadget/file_storage.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c
index 1d174dcb3ac9..3301167d4f2a 100644
--- a/drivers/usb/gadget/file_storage.c
+++ b/drivers/usb/gadget/file_storage.c
@@ -275,19 +275,15 @@ MODULE_LICENSE("Dual BSD/GPL");
275 275
276/*-------------------------------------------------------------------------*/ 276/*-------------------------------------------------------------------------*/
277 277
278#ifdef DEBUG
279#define LDBG(lun,fmt,args...) \ 278#define LDBG(lun,fmt,args...) \
280 dev_dbg(&(lun)->dev , fmt , ## args) 279 dev_dbg(&(lun)->dev , fmt , ## args)
281#define MDBG(fmt,args...) \ 280#define MDBG(fmt,args...) \
282 printk(KERN_DEBUG DRIVER_NAME ": " fmt , ## args) 281 pr_debug(DRIVER_NAME ": " fmt , ## args)
283#else 282
284#define LDBG(lun,fmt,args...) \ 283#ifndef DEBUG
285 do { } while (0)
286#define MDBG(fmt,args...) \
287 do { } while (0)
288#undef VERBOSE_DEBUG 284#undef VERBOSE_DEBUG
289#undef DUMP_MSGS 285#undef DUMP_MSGS
290#endif /* DEBUG */ 286#endif /* !DEBUG */
291 287
292#ifdef VERBOSE_DEBUG 288#ifdef VERBOSE_DEBUG
293#define VLDBG LDBG 289#define VLDBG LDBG
@@ -304,7 +300,7 @@ MODULE_LICENSE("Dual BSD/GPL");
304 dev_info(&(lun)->dev , fmt , ## args) 300 dev_info(&(lun)->dev , fmt , ## args)
305 301
306#define MINFO(fmt,args...) \ 302#define MINFO(fmt,args...) \
307 printk(KERN_INFO DRIVER_NAME ": " fmt , ## args) 303 pr_info(DRIVER_NAME ": " fmt , ## args)
308 304
309#define DBG(d, fmt, args...) \ 305#define DBG(d, fmt, args...) \
310 dev_dbg(&(d)->gadget->dev , fmt , ## args) 306 dev_dbg(&(d)->gadget->dev , fmt , ## args)