Patchwork ISDN: fix sc/shmem printk format warning

login
register
mail settings
Submitter Randy Dunlap
Date Feb. 19, 2009, 9:47 p.m.
Message ID <20090219134740.4dff14c2.randy.dunlap@oracle.com>
Download mbox | patch
Permalink /patch/23457/
State Accepted
Delegated to: David Miller
Headers show

Comments

Randy Dunlap - Feb. 19, 2009, 9:47 p.m.
From: Randy Dunlap <randy.dunlap@oracle.com>

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'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/isdn/sc/shmem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Feb. 20, 2009, 8:54 a.m.
From: Randy Dunlap <randy.dunlap@oracle.com>
Date: Thu, 19 Feb 2009 13:47:40 -0800

> 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'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

Applied, thanks Randy.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- linux-2.6.29-rc5-git3.orig/drivers/isdn/sc/shmem.c
+++ linux-2.6.29-rc5-git3/drivers/isdn/sc/shmem.c
@@ -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));