summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/at91_udc.h
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-11-19 21:58:36 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 23:34:51 +0100
commit00274921a052d3232d9f00856387fb269ac0af11 (patch)
tree20d2baa7234c936b7451d76f6da527d43197f994 /drivers/usb/gadget/at91_udc.h
parentUSB: don't change HC power state for a FREEZE (diff)
downloadlinux-00274921a052d3232d9f00856387fb269ac0af11.tar.xz
linux-00274921a052d3232d9f00856387fb269ac0af11.zip
USB: gadget code switches to pr_err() and friends
We now have pr_err(), pr_warning(), and friends ... start using them in the gadget stack instead of printk(KERN_ERR) and friends. This gives us shorter lines and somewhat increased readability. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/at91_udc.h')
-rw-r--r--drivers/usb/gadget/at91_udc.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/usb/gadget/at91_udc.h b/drivers/usb/gadget/at91_udc.h
index 7e34e2f864f9..aecc7225a8c6 100644
--- a/drivers/usb/gadget/at91_udc.h
+++ b/drivers/usb/gadget/at91_udc.h
@@ -158,12 +158,6 @@ struct at91_request {
/*-------------------------------------------------------------------------*/
-#ifdef DEBUG
-#define DBG(stuff...) printk(KERN_DEBUG "udc: " stuff)
-#else
-#define DBG(stuff...) do{}while(0)
-#endif
-
#ifdef VERBOSE
# define VDBG DBG
#else
@@ -176,9 +170,10 @@ struct at91_request {
# define PACKET(stuff...) do{}while(0)
#endif
-#define ERR(stuff...) printk(KERN_ERR "udc: " stuff)
-#define WARN(stuff...) printk(KERN_WARNING "udc: " stuff)
-#define INFO(stuff...) printk(KERN_INFO "udc: " stuff)
+#define ERR(stuff...) pr_err("udc: " stuff)
+#define WARN(stuff...) pr_warning("udc: " stuff)
+#define INFO(stuff...) pr_info("udc: " stuff)
+#define DBG(stuff...) pr_debug("udc: " stuff)
#endif