Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PNP: fix printk format warnings

next-20080430/drivers/pnp/pnpbios/rsparser.c:594: warning: format '%d' expects type 'int', but argument 4 has type 'resource_size_t'
next-20080430/drivers/pnp/pnpbios/rsparser.c:605: warning: format '%d' expects type 'int', but argument 4 has type 'resource_size_t'

[joe@perches.com: fix it]
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Joe Perches <joe@perches.com>

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
7793bfcf 2e11cb4c

+4 -2
+4 -2
drivers/pnp/pnpbios/rsparser.c
··· 591 591 p[1] = map & 0xff; 592 592 p[2] = (map >> 8) & 0xff; 593 593 594 - dev_dbg(&dev->dev, " encode irq %d\n", res->start); 594 + dev_dbg(&dev->dev, " encode irq %llu\n", 595 + (unsigned long long)res->start); 595 596 } 596 597 597 598 static void pnpbios_encode_dma(struct pnp_dev *dev, unsigned char *p, ··· 603 602 map = 1 << res->start; 604 603 p[1] = map & 0xff; 605 604 606 - dev_dbg(&dev->dev, " encode dma %d\n", res->start); 605 + dev_dbg(&dev->dev, " encode dma %llu\n", 606 + (unsigned long long)res->start); 607 607 } 608 608 609 609 static void pnpbios_encode_port(struct pnp_dev *dev, unsigned char *p,