[PATCH] W1: fix printk format warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-03-02 at 21:53 -0800, Randy.Dunlap wrote:
> Use 'unsigned long long' for __u64 printk:
> 
> drivers/w1/w1.c:415: warning: long long unsigned int format, __u64 arg (arg 6)

Thank you, I've applied it to me tree.
Andrew, please, push it upstrem.

> Signed-off-by: Randy Dunlap <rddunlap at osdl.org>

Signed-off-by: Evgeniy Polyakov <johnpol at 2ka.mipt.ru>

> diffstat:=
>  drivers/w1/w1.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff -Naurp ./drivers/w1/w1.c~w1_printk ./drivers/w1/w1.c
> --- ./drivers/w1/w1.c~w1_printk	2005-03-01 23:37:54.000000000 -0800
> +++ ./drivers/w1/w1.c	2005-03-02 13:17:15.534605432 -0800
> @@ -413,7 +413,8 @@ static int w1_attach_slave_device(struct
>  	if (!f) {
>  		spin_unlock(&w1_flock);
>  		dev_info(&dev->dev, "Family %x for %02x.%012llx.%02x is not registered.\n",
> -			  rn->family, rn->family, rn->id, rn->crc);
> +			  rn->family, rn->family,
> +			  (unsigned long long)rn->id, rn->crc);
>  		kfree(sl);
>  		return -ENODEV;
>  	}
> 
> 
> ---
-- 
        Evgeniy Polyakov

Crash is better than data corruption -- Arthur Grabowski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050303/340cee0d/attachment.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux