Re: resource_size_t and printk()

From: Alan Cox
Date: Wed Jul 12 2006 - 17:48:30 EST


Ar Mer, 2006-07-12 am 14:37 -0700, ysgrifennodd Greg KH:
> Like Randy said, please use "unsigned long long".
>
> Care to redo this?


While you are at it someone did 8139cp and used "%l" not "%ll"

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.18-rc1/drivers/net/8139cp.c linux-2.6.18-rc1/drivers/net/8139cp.c
--- linux.vanilla-2.6.18-rc1/drivers/net/8139cp.c 2006-07-12 12:16:46.000000000 +0100
+++ linux-2.6.18-rc1/drivers/net/8139cp.c 2006-07-12 12:47:20.000000000 +0100
@@ -1916,7 +1916,7 @@
regs = ioremap(pciaddr, CP_REGS_SIZE);
if (!regs) {
rc = -EIO;
- dev_err(&pdev->dev, "Cannot map PCI MMIO (%lx@%lx)\n",
+ dev_err(&pdev->dev, "Cannot map PCI MMIO (%llx@%llx)\n",
(unsigned long long)pci_resource_len(pdev, 1),
(unsigned long long)pciaddr);
goto err_out_res;

-
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/