diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-14 12:37:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-17 17:41:09 -0400 |
commit | 3b6004f3b5a8b4506fa8dee29667aed44913a990 (patch) | |
tree | 0f54fd20c8646c7e58a634cddfb5af03730fe9d3 /drivers/usb/core | |
parent | 4dc8994806a812044e48514af60d4b4e0315f237 (diff) |
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>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/devio.c | 3 | ||||
-rw-r--r-- | drivers/usb/core/inode.c | 6 | ||||
-rw-r--r-- | drivers/usb/core/message.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 528befdcc781..7f621149f9f2 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -413,7 +413,8 @@ static void driver_disconnect(struct usb_interface *intf) | |||
413 | if (likely(ifnum < 8*sizeof(ps->ifclaimed))) | 413 | if (likely(ifnum < 8*sizeof(ps->ifclaimed))) |
414 | clear_bit(ifnum, &ps->ifclaimed); | 414 | clear_bit(ifnum, &ps->ifclaimed); |
415 | else | 415 | else |
416 | warn("interface number %u out of range", ifnum); | 416 | dev_warn(&intf->dev, "interface number %u out of range\n", |
417 | ifnum); | ||
417 | 418 | ||
418 | usb_set_intfdata(intf, NULL); | 419 | usb_set_intfdata(intf, NULL); |
419 | 420 | ||
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index 77fa7a080801..2cf2dc8528d8 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -240,7 +240,9 @@ static void update_sb(struct super_block *sb) | |||
240 | update_special(bus); | 240 | update_special(bus); |
241 | break; | 241 | break; |
242 | default: | 242 | default: |
243 | warn("Unknown node %s mode %x found on remount!\n",bus->d_name.name,bus->d_inode->i_mode); | 243 | printk(KERN_WARNING "usbfs: Unknown node %s " |
244 | "mode %x found on remount!\n", | ||
245 | bus->d_name.name, bus->d_inode->i_mode); | ||
244 | break; | 246 | break; |
245 | } | 247 | } |
246 | } | 248 | } |
@@ -259,7 +261,7 @@ static int remount(struct super_block *sb, int *flags, char *data) | |||
259 | return 0; | 261 | return 0; |
260 | 262 | ||
261 | if (parse_options(sb, data)) { | 263 | if (parse_options(sb, data)) { |
262 | warn("usbfs: mount parameter error:"); | 264 | printk(KERN_WARNING "usbfs: mount parameter error.\n"); |
263 | return -EINVAL; | 265 | return -EINVAL; |
264 | } | 266 | } |
265 | 267 | ||
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 286b4431a097..887738577b28 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c | |||
@@ -1204,7 +1204,8 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate) | |||
1204 | 1204 | ||
1205 | alt = usb_altnum_to_altsetting(iface, alternate); | 1205 | alt = usb_altnum_to_altsetting(iface, alternate); |
1206 | if (!alt) { | 1206 | if (!alt) { |
1207 | warn("selecting invalid altsetting %d", alternate); | 1207 | dev_warn(&dev->dev, "selecting invalid altsetting %d", |
1208 | alternate); | ||
1208 | return -EINVAL; | 1209 | return -EINVAL; |
1209 | } | 1210 | } |
1210 | 1211 | ||