diff options
author | Shuah Khan <shuah.kh@samsung.com> | 2014-01-22 16:24:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 13:53:35 -0500 |
commit | a6646ea683c0c73962cb67aea9be40b11b916de5 (patch) | |
tree | 1e82b2f1a6b8a09bee1dd736a57ccdbb90bef2c6 | |
parent | 3b92e8ae303f8df6a30690358876692d979bd6dc (diff) |
staging/usbip: Change vhci_hcd store_attach() device information message to include speed string
Change vhci_hcd store_attach() routine to include speed string in its device
information message. The current call to dev_info() prints out speed number
which is the enum number. Change to call usb_speed_string() to print speed
string in addition to the number.
Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/usbip/vhci_sysfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/usbip/vhci_sysfs.c b/drivers/staging/usbip/vhci_sysfs.c index 9b51586d11d9..742309222103 100644 --- a/drivers/staging/usbip/vhci_sysfs.c +++ b/drivers/staging/usbip/vhci_sysfs.c | |||
@@ -214,8 +214,9 @@ static ssize_t store_attach(struct device *dev, struct device_attribute *attr, | |||
214 | return -EINVAL; | 214 | return -EINVAL; |
215 | } | 215 | } |
216 | 216 | ||
217 | dev_info(dev, "rhport(%u) sockfd(%d) devid(%u) speed(%u)\n", | 217 | dev_info(dev, |
218 | rhport, sockfd, devid, speed); | 218 | "rhport(%u) sockfd(%d) devid(%u) speed(%u) speed_str(%s)\n", |
219 | rhport, sockfd, devid, speed, usb_speed_string(speed)); | ||
219 | 220 | ||
220 | vdev->devid = devid; | 221 | vdev->devid = devid; |
221 | vdev->speed = speed; | 222 | vdev->speed = speed; |