patch-2.4.15 linux/drivers/usb/kaweth.c

Next file: linux/drivers/usb/serial/ftdi_sio.c
Previous file: linux/drivers/usb/hub.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/drivers/usb/kaweth.c linux/drivers/usb/kaweth.c
@@ -374,9 +374,9 @@
 	kaweth_dbg("High: %i, Low:%i", kaweth->firmware_buf[3],
 		   kaweth->firmware_buf[2]);
 
-	kaweth_dbg("Downloading firmware at %x to kaweth device at %x", 
-	    (int)data, 
-	    (int)kaweth);
+	kaweth_dbg("Downloading firmware at %p to kaweth device at %p", 
+	    data, 
+	    kaweth);
 	kaweth_dbg("Firmware length: %d", data_len);
 
 	return kaweth_control(kaweth,
@@ -480,7 +480,7 @@
 	int count = urb->actual_length;
 	int count2 = urb->transfer_buffer_length;
 			
-	__u16 pkt_len = le16_to_cpup(kaweth->rx_buf);
+	__u16 pkt_len = le16_to_cpup((u16 *)kaweth->rx_buf);
 
 	struct sk_buff *skb;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)