mwifiex: add missing USB-descriptor endianness conversion
authorJohan Hovold <johan@kernel.org>
Fri, 12 May 2017 10:15:55 +0000 (12:15 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 19 May 2017 06:03:04 +0000 (09:03 +0300)
Add the missing endianness conversions to a debug statement printing
the USB device-descriptor bcdUSB field during probe.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/usb.c

index 2f7705c50161404825695846bd94e8c95bfd5a7c..debd6216366ab16155ab4f004e81b26b6f8f9ca1 100644 (file)
@@ -424,7 +424,8 @@ static int mwifiex_usb_probe(struct usb_interface *intf,
        card->intf = intf;
 
        pr_debug("info: bcdUSB=%#x Device Class=%#x SubClass=%#x Protocol=%#x\n",
-                udev->descriptor.bcdUSB, udev->descriptor.bDeviceClass,
+                le16_to_cpu(udev->descriptor.bcdUSB),
+                udev->descriptor.bDeviceClass,
                 udev->descriptor.bDeviceSubClass,
                 udev->descriptor.bDeviceProtocol);