usb: rockchip: fix printing csw debug info
authorAlberto Panizzo <alberto@amarulasolutions.com>
Thu, 12 Jul 2018 11:05:48 +0000 (13:05 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 8 Aug 2018 20:22:07 +0000 (22:22 +0200)
Workstation tool was happy while console on device were printing
random numbers..

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
drivers/usb/gadget/f_rockusb.c

index 0959b8c3a0a8ab1a6ca1417f6bbac3bfffd99960..574d61058081f514fe8dbc2dceec10cc528b8053 100644 (file)
@@ -384,7 +384,7 @@ static int rockusb_tx_write_csw(u32 tag, int residue, u8 status, int size)
        csw->residue = cpu_to_be32(residue);
        csw->status = status;
 #ifdef DEBUG
-       printcsw((char *)&csw);
+       printcsw((char *)csw);
 #endif
        return rockusb_tx_write((char *)csw, size);
 }