Re: mmotm 2010-10-31-21-24 uploaded (drivers/nfc/pn544)

From: Jiri Slaby
Date: Thu Nov 04 2010 - 10:26:51 EST


On 11/02/2010 08:57 AM, Matti J. Aaltonen wrote:
> On Mon, 2010-11-01 at 11:00 -0700, ext Randy Dunlap wrote:
>> Use %zd to print ssize_t variables and %zu to print size_t:
>>
>> drivers/nfc/pn544.c:332: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
>> drivers/nfc/pn544.c:442: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
>
> Thanks, I'll do that... I'm using Sparse and checkpatch --strict but
> neither gave me a warning about that.

You would need a 64bit compiler to emit that for size_t.

regards,
--
js
suse labs
--
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/