Skip to contentSkip to conversation

kaweth: print correct debug ptr

PATCH In review Alan Cox 2 participants 2 messages Oct 11, 2012 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 kaweth: print correct debug ptr

From: Alan Cox <alan-VuQAYsv1563Yd54FQh9/[email protected]>

We nowdays copy the buffer and free fw->data, so make the debug printk use the right thing.

---

 drivers/net/usb/kaweth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/usb/kaweth.c +1 -1
index c75e11e..afb117c 100644
@@ -424,7 +424,7 @@ static int kaweth_download_firmware(struct kaweth_device *kaweth,
 
 	netdev_dbg(kaweth->net,
 		   "Downloading firmware at %p to kaweth device at %p\n",
-		   fw->data, kaweth);
+		   kaweth->firmware_buf, kaweth);
 	netdev_dbg(kaweth->net, "Firmware length: %d\n", data_len);
 
 	return kaweth_control(kaweth,

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive

From: Alan Cox <alan-qBU/[email protected]>
Date: Thu, 11 Oct 2012 17:22:03 +0100

Quoted 6 lines

From: Alan Cox <alan-VuQAYsv1563Yd54FQh9/[email protected]>

We nowdays copy the buffer and free fw->data, so make the debug printk use the right thing.

Applied and queued up for -stable.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html