aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShuah Khan <shuah.kh@samsung.com>2014-01-22 14:24:29 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 10:53:35 -0800
commita6646ea683c0c73962cb67aea9be40b11b916de5 (patch)
tree1e82b2f1a6b8a09bee1dd736a57ccdbb90bef2c6
parentstaging/usbip: remove vhci_hcd vhci_hub_status change message (diff)
downloadlinux-dev-a6646ea683c0c73962cb67aea9be40b11b916de5.tar.xz
linux-dev-a6646ea683c0c73962cb67aea9be40b11b916de5.zip
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.c5
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,
return -EINVAL;
}
- dev_info(dev, "rhport(%u) sockfd(%d) devid(%u) speed(%u)\n",
- rhport, sockfd, devid, speed);
+ dev_info(dev,
+ "rhport(%u) sockfd(%d) devid(%u) speed(%u) speed_str(%s)\n",
+ rhport, sockfd, devid, speed, usb_speed_string(speed));
vdev->devid = devid;
vdev->speed = speed;