Commit 586af079 authored by Scot Doyle's avatar Scot Doyle Committed by Greg Kroah-Hartman

usb: core: log higher level message on malformed LANGID descriptor

Commit 0cce2eda
     USB: fix LANGID=0 regression

defaults to a langid of 0x0409 if it's not properly implemented by the
device. Explain with a higher level error message what this means.
Signed-off-by: default avatarScot Doyle <lkml14@scotdoyle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0cfbd328
...@@ -770,9 +770,7 @@ static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf) ...@@ -770,9 +770,7 @@ static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf)
dev->string_langid = 0x0409; dev->string_langid = 0x0409;
dev->have_langid = 1; dev->have_langid = 1;
dev_err(&dev->dev, dev_err(&dev->dev,
"string descriptor 0 malformed (err = %d), " "language id specifier not provided by device, defaulting to English\n");
"defaulting to 0x%04x\n",
err, dev->string_langid);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment