Skip to content

Commit b12ca80

Browse files
jhovolddavem330
authored andcommitted
net: ch9200: add missing USB-descriptor endianness conversions
Add the missing endianness conversions to a debug statement printing the USB device-descriptor idVendor and idProduct fields during probe. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 75cf067 commit b12ca80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/usb/ch9200.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ static int get_mac_address(struct usbnet *dev, unsigned char *data)
310310
int rd_mac_len = 0;
311311

312312
netdev_dbg(dev->net, "get_mac_address:\n\tusbnet VID:%0x PID:%0x\n",
313-
dev->udev->descriptor.idVendor,
314-
dev->udev->descriptor.idProduct);
313+
le16_to_cpu(dev->udev->descriptor.idVendor),
314+
le16_to_cpu(dev->udev->descriptor.idProduct));
315315

316316
memset(mac_addr, 0, sizeof(mac_addr));
317317
rd_mac_len = control_read(dev, REQUEST_READ, 0,

0 commit comments

Comments
 (0)