[U-Boot] [PATCH v2 8/8] usb: rockchip: fix printing csw debug info

Alberto Panizzo alberto at amarulasolutions.com
Wed Jul 4 18:47:29 UTC 2018


Workstation tool was happy while console on device were printing
random numbers..

Signed-off-by: Alberto Panizzo <alberto at amarulasolutions.com>
---
 drivers/usb/gadget/f_rockusb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c
index 6f97646..89e4516 100644
--- a/drivers/usb/gadget/f_rockusb.c
+++ b/drivers/usb/gadget/f_rockusb.c
@@ -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);
 }
-- 
2.7.4



More information about the U-Boot mailing list