Title: [7365] trunk/drivers/usb/musb/musbhsdma.c: USB: musb: fix printf warning in debug code
- Revision
- 7365
- Author
- vapier
- Date
- 2009-09-16 19:34:12 -0400 (Wed, 16 Sep 2009)
Log Message
USB: musb: fix printf warning in debug code
The debug code in the DMA ISR uses a %d for a size_t when it should be
using %zu. Otherwise gcc whines with:
drivers/usb/musb/musbhsdma.c: In function 'dma_controller_irq':
drivers/usb/musb/musbhsdma.c:288: warning: format '%d' expects type 'int',
but argument 7 has type 'size_t'
Modified Paths
Diff
Modified: trunk/drivers/usb/musb/musbhsdma.c (7364 => 7365)
--- trunk/drivers/usb/musb/musbhsdma.c 2009-09-16 23:02:01 UTC (rev 7364)
+++ trunk/drivers/usb/musb/musbhsdma.c 2009-09-16 23:34:12 UTC (rev 7365)
@@ -285,7 +285,7 @@
channel->actual_len = addr
- musb_channel->start_addr;
- DBG(2, "ch %p, 0x%x -> 0x%x (%d / %d) %s\n",
+ DBG(2, "ch %p, 0x%x -> 0x%x (%zu / %d) %s\n",
channel, musb_channel->start_addr,
addr, channel->actual_len,
musb_channel->len,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits