[PATCH 2/2] USB: musb: host: fix mismatched format specifier in dev_dbg()

Ahmad Fatoum ahmad at a3f.at
Mon Sep 21 03:13:01 EDT 2020


Unadorned 0 is an int, but is printed used %zu. As it's just an interger
literal, just hardcode it into the string.

Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
---
 drivers/usb/musb/musb_host.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 68d819af2cc8..be9651b04960 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1189,8 +1189,8 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 
 	pipe = urb->pipe;
 
-	dev_dbg(musb->controller, "<== hw %d rxcsr %04x, urb actual %d (+dma %zu)\n",
-		epnum, rx_csr, urb->actual_length, 0);
+	dev_dbg(musb->controller, "<== hw %d rxcsr %04x, urb actual %d (+dma 0)\n",
+		epnum, rx_csr, urb->actual_length);
 
 	/* check for errors, concurrent stall & unlink is not really
 	 * handled yet! */
-- 
2.28.0




More information about the barebox mailing list