aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/zero.c
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-11-19 15:58:36 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 17:34:51 -0500
commit00274921a052d3232d9f00856387fb269ac0af11 (patch)
tree20d2baa7234c936b7451d76f6da527d43197f994 /drivers/usb/gadget/zero.c
parent269954e542328f014fc07fbb0a986192f7a1cced (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/zero.c')
-rw-r--r--drivers/usb/gadget/zero.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c
index fcde5d9c87df..d3d4f4048e6c 100644
--- a/drivers/usb/gadget/zero.c
+++ b/drivers/usb/gadget/zero.c
@@ -1115,7 +1115,7 @@ zero_bind (struct usb_gadget *gadget)
1115 ep = usb_ep_autoconfig (gadget, &fs_source_desc); 1115 ep = usb_ep_autoconfig (gadget, &fs_source_desc);
1116 if (!ep) { 1116 if (!ep) {
1117autoconf_fail: 1117autoconf_fail:
1118 printk (KERN_ERR "%s: can't autoconfigure on %s\n", 1118 pr_err("%s: can't autoconfigure on %s\n",
1119 shortname, gadget->name); 1119 shortname, gadget->name);
1120 return -ENODEV; 1120 return -ENODEV;
1121 } 1121 }
@@ -1139,7 +1139,7 @@ autoconf_fail:
1139 * things like configuration and altsetting numbering 1139 * things like configuration and altsetting numbering
1140 * can need hardware-specific attention though. 1140 * can need hardware-specific attention though.
1141 */ 1141 */
1142 printk (KERN_WARNING "%s: controller '%s' not recognized\n", 1142 pr_warning("%s: controller '%s' not recognized\n",
1143 shortname, gadget->name); 1143 shortname, gadget->name);
1144 device_desc.bcdDevice = __constant_cpu_to_le16 (0x9999); 1144 device_desc.bcdDevice = __constant_cpu_to_le16 (0x9999);
1145 } 1145 }