diff options
author | Phil Dibowitz <phil@ipom.com> | 2006-06-24 20:27:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-07-12 19:03:22 -0400 |
commit | 5650b4dd141e823c2b1bc248cb9ad3e9ac88cf19 (patch) | |
tree | ca08b15836016168cc4d4338363650c0cff0d7e7 /drivers/usb | |
parent | 883d989a7edf7a62e38e9150990b56209420e9e5 (diff) |
[PATCH] USB Storage: Uname in PR/SC Unneeded message
This patch adds the kernel version to the usb-storage Protocol/SubClass
unneeded message in order to help us troubleshoot such problems.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/storage/usb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 04c3bec81201..5ee19be52f65 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c | |||
@@ -55,6 +55,7 @@ | |||
55 | #include <linux/slab.h> | 55 | #include <linux/slab.h> |
56 | #include <linux/kthread.h> | 56 | #include <linux/kthread.h> |
57 | #include <linux/mutex.h> | 57 | #include <linux/mutex.h> |
58 | #include <linux/utsrelease.h> | ||
58 | 59 | ||
59 | #include <scsi/scsi.h> | 60 | #include <scsi/scsi.h> |
60 | #include <scsi/scsi_cmnd.h> | 61 | #include <scsi/scsi_cmnd.h> |
@@ -528,7 +529,8 @@ static void get_device_info(struct us_data *us, const struct usb_device_id *id) | |||
528 | if (msg >= 0 && !(us->flags & US_FL_NEED_OVERRIDE)) | 529 | if (msg >= 0 && !(us->flags & US_FL_NEED_OVERRIDE)) |
529 | printk(KERN_NOTICE USB_STORAGE "This device " | 530 | printk(KERN_NOTICE USB_STORAGE "This device " |
530 | "(%04x,%04x,%04x S %02x P %02x)" | 531 | "(%04x,%04x,%04x S %02x P %02x)" |
531 | " has %s in unusual_devs.h\n" | 532 | " has %s in unusual_devs.h (kernel" |
533 | " %s)\n" | ||
532 | " Please send a copy of this message to " | 534 | " Please send a copy of this message to " |
533 | "<linux-usb-devel@lists.sourceforge.net>\n", | 535 | "<linux-usb-devel@lists.sourceforge.net>\n", |
534 | le16_to_cpu(ddesc->idVendor), | 536 | le16_to_cpu(ddesc->idVendor), |
@@ -536,7 +538,8 @@ static void get_device_info(struct us_data *us, const struct usb_device_id *id) | |||
536 | le16_to_cpu(ddesc->bcdDevice), | 538 | le16_to_cpu(ddesc->bcdDevice), |
537 | idesc->bInterfaceSubClass, | 539 | idesc->bInterfaceSubClass, |
538 | idesc->bInterfaceProtocol, | 540 | idesc->bInterfaceProtocol, |
539 | msgs[msg]); | 541 | msgs[msg], |
542 | UTS_RELEASE); | ||
540 | } | 543 | } |
541 | } | 544 | } |
542 | 545 | ||