kaweth: print correct debug ptr
authorAlan Cox <alan@linux.intel.com>
Thu, 11 Oct 2012 06:22:03 +0000 (06:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2012 19:12:33 +0000 (15:12 -0400)
We nowdays copy the buffer and free fw->data, so make the debug printk use
the right thing.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kaweth.c

index c75e11e1b385f3f5654605959b1a6db5ba44641a..afb117c16d2d3688b62952ec2251f29c29eee06c 100644 (file)
@@ -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,