Skip to contentSkip to conversation

ISDN: fix sc/shmem printk format warning

PATCH Applied Randy Dunlap 2 participants 2 messages Feb 19, 2009 – Feb 20, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ISDN: fix sc/shmem printk format warning

From: Randy Dunlap <[email protected]>

Fix isdn/sc/shmem.c printk format warning:

drivers/isdn/sc/shmem.c:57: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

---
 drivers/isdn/sc/shmem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/isdn/sc/shmem.c +1 -1
@@ -54,7 +54,7 @@ void memcpy_toshmem(int card, void *dest
 	spin_unlock_irqrestore(&sc_adapter[card]->lock, flags);
 	pr_debug("%s: set page to %#x\n",sc_adapter[card]->devicename,
 		((sc_adapter[card]->shmem_magic + ch * SRAM_PAGESIZE)>>14)|0x80);
-	pr_debug("%s: copying %d bytes from %#lx to %#lx\n",
+	pr_debug("%s: copying %zu bytes from %#lx to %#lx\n",
 		sc_adapter[card]->devicename, n,
 		(unsigned long) src,
 		sc_adapter[card]->rambase + ((unsigned long) dest %0x4000));
maintainer Applied
#1 lore raw

From: Randy Dunlap <[email protected]>
Date: Thu, 19 Feb 2009 13:47:40 -0800

Quoted 5 lines

Fix isdn/sc/shmem.c printk format warning:

drivers/isdn/sc/shmem.c:57: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Applied, thanks Randy.