Subject: Re: [patch 7/9] 8139cp.c printk fix

From: Jeff Garzik <[email-masked]>
Date: Fri, 07 Jul 2006 03:38:21 -0400

[email-masked] wrote:
> From: Andrew Morton <[email-masked]>
> 
> drivers/net/8139cp.c: In function 'cp_init_one':
> drivers/net/8139cp.c:1919: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
> drivers/net/8139cp.c:1919: warning: format '%lx' expects type 'long unsigned int', but argument 5 has type 'resource_size_t'
> 
> 
> Signed-off-by: Andrew Morton <[email-masked]>
> ---
> 
>  drivers/net/8139cp.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/net/8139cp.c~8139cp-printk-fix drivers/net/8139cp.c
> --- a/drivers/net/8139cp.c~8139cp-printk-fix
> +++ a/drivers/net/8139cp.c
> @@ -1916,7 +1916,7 @@ static int cp_init_one (struct pci_dev *
>  	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 (%Lx@%Lx)\n",
>  		       (unsigned long long)pci_resource_len(pdev, 1),
>  		       (unsigned long long)pciaddr);

should be %llx if I'm not mistaken...  (looks like a merge screwup on my 
part)