[PATCH] fix warning about wrong format in drivers/atm/ambassador.c::do_pci_device

From: Jesper Juhl
Date: Sun Oct 03 2004 - 16:27:12 EST



gcc spits the following at me when building drivers/atm/ambassador.c :

CC drivers/atm/ambassador.o
drivers/atm/ambassador.c: In function `do_pci_device':
drivers/atm/ambassador.c:2295: warning: unsigned int format, long unsigned int arg (arg 2)
drivers/atm/ambassador.c:2295: warning: unsigned int format, long unsigned int arg (arg 2)

Here's a trivial fix.


Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>

diff -up linux-2.6.9-rc3-bk3-orig/drivers/atm/ambassador.c linux-2.6.9-rc3-bk3/drivers/atm/ambassador.c
--- linux-2.6.9-rc3-bk3-orig/drivers/atm/ambassador.c 2004-09-30 05:03:55.000000000 +0200
+++ linux-2.6.9-rc3-bk3/drivers/atm/ambassador.c 2004-10-03 23:23:19.000000000 +0200
@@ -2293,7 +2293,7 @@ static int __init do_pci_device(struct p
u8 irq = pci_dev->irq;

PRINTD (DBG_INFO, "found Madge ATM adapter (amb) at"
- " IO %x, IRQ %u, MEM %p", pci_resource_start(pci_dev, 1),
+ " IO %lx, IRQ %u, MEM %p", pci_resource_start(pci_dev, 1),
irq, bus_to_virt(pci_resource_start(pci_dev, 0)));

// check IO region


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/