diff options
author | David Brownell <david-b@pacbell.net> | 2007-11-19 15:58:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 17:34:51 -0500 |
commit | 00274921a052d3232d9f00856387fb269ac0af11 (patch) | |
tree | 20d2baa7234c936b7451d76f6da527d43197f994 /drivers/usb/gadget/pxa2xx_udc.h | |
parent | 269954e542328f014fc07fbb0a986192f7a1cced (diff) |
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/pxa2xx_udc.h')
-rw-r--r-- | drivers/usb/gadget/pxa2xx_udc.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/usb/gadget/pxa2xx_udc.h b/drivers/usb/gadget/pxa2xx_udc.h index 1db46d705777..97a8c45ccd81 100644 --- a/drivers/usb/gadget/pxa2xx_udc.h +++ b/drivers/usb/gadget/pxa2xx_udc.h | |||
@@ -151,6 +151,8 @@ static struct pxa2xx_udc *the_controller; | |||
151 | #define DBG_NOISY 3 /* ... even more: request level */ | 151 | #define DBG_NOISY 3 /* ... even more: request level */ |
152 | #define DBG_VERY_NOISY 4 /* ... even more: packet level */ | 152 | #define DBG_VERY_NOISY 4 /* ... even more: packet level */ |
153 | 153 | ||
154 | #define DMSG(stuff...) pr_debug("udc: " stuff) | ||
155 | |||
154 | #ifdef DEBUG | 156 | #ifdef DEBUG |
155 | 157 | ||
156 | static const char *state_name[] = { | 158 | static const char *state_name[] = { |
@@ -159,8 +161,6 @@ static const char *state_name[] = { | |||
159 | "EP0_END_XFER", "EP0_STALL" | 161 | "EP0_END_XFER", "EP0_STALL" |
160 | }; | 162 | }; |
161 | 163 | ||
162 | #define DMSG(stuff...) printk(KERN_DEBUG "udc: " stuff) | ||
163 | |||
164 | #ifdef VERBOSE | 164 | #ifdef VERBOSE |
165 | # define UDC_DEBUG DBG_VERBOSE | 165 | # define UDC_DEBUG DBG_VERBOSE |
166 | #else | 166 | #else |
@@ -241,8 +241,6 @@ dump_state(struct pxa2xx_udc *dev) | |||
241 | 241 | ||
242 | #else | 242 | #else |
243 | 243 | ||
244 | #define DMSG(stuff...) do{}while(0) | ||
245 | |||
246 | #define dump_udccr(x) do{}while(0) | 244 | #define dump_udccr(x) do{}while(0) |
247 | #define dump_udccs0(x) do{}while(0) | 245 | #define dump_udccs0(x) do{}while(0) |
248 | #define dump_state(x) do{}while(0) | 246 | #define dump_state(x) do{}while(0) |
@@ -253,8 +251,9 @@ dump_state(struct pxa2xx_udc *dev) | |||
253 | 251 | ||
254 | #define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0) | 252 | #define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0) |
255 | 253 | ||
256 | #define WARN(stuff...) printk(KERN_WARNING "udc: " stuff) | 254 | #define ERR(stuff...) pr_err("udc: " stuff) |
257 | #define INFO(stuff...) printk(KERN_INFO "udc: " stuff) | 255 | #define WARN(stuff...) pr_warning("udc: " stuff) |
256 | #define INFO(stuff...) pr_info("udc: " stuff) | ||
258 | 257 | ||
259 | 258 | ||
260 | #endif /* __LINUX_USB_GADGET_PXA2XX_H */ | 259 | #endif /* __LINUX_USB_GADGET_PXA2XX_H */ |