Skip to content

Commit 2124c88

Browse files
khfenggregkh
authored andcommitted
usb: core: lower log level when device is not able to deal with string
USB devices should work just fine when they don't support language id. Lower the log level so user won't panic in the future. BugLink: https://bugs.launchpad.net/bugs/1729618 Signed-off-by: Kai-Heng Feng <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4fbd8d1 commit 2124c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/core/message.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf)
776776
* deal with strings at all. Set string_langid to -1 in order to
777777
* prevent any string to be retrieved from the device */
778778
if (err < 0) {
779-
dev_err(&dev->dev, "string descriptor 0 read error: %d\n",
779+
dev_info(&dev->dev, "string descriptor 0 read error: %d\n",
780780
err);
781781
dev->string_langid = -1;
782782
return -EPIPE;

0 commit comments

Comments
 (0)