Skip to contentSkip to conversation

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

PATCH New Scot Doyle 1 participant 1 message Sep 25, 2014 USB

lore
Share & tools
lore

Scot Doyle

author
#0 lore raw

PATCH v2 1/1 usb: core: log higher level message on malformed LANGID descriptor

Commit 0cce2eda19923e5e5ccc8b042dec5af87b3ffad0
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.

---
 drivers/usb/core/message.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/usb/core/message.c +1 -3
index 0c8a7fc..f7b7713 100644
@@ -770,9 +770,7 @@ static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf)
 		dev->string_langid = 0x0409;
 		dev->have_langid = 1;
 		dev_err(&dev->dev,
-			"string descriptor 0 malformed (err = %d), "
-			"defaulting to 0x%04x\n",
-				err, dev->string_langid);
+			"language id specifier not provided by device, defaulting to English\n");
 		return 0;
 	}
 
Signature · 1 line
2.1.0