lkml.org 
[lkml]   [2006]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: resource_size_t and printk()
    From
    Date
    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@redhat.com>

    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-07-12 23:53    [W:0.057 / U:1.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site