Re: PATCH: fix some 32bit isms
From: viro
Date: Fri Aug 06 2004 - 18:09:42 EST
On Sat, Aug 07, 2004 at 12:03:05AM +0100, viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> > It should be %zu, since size_t is unsigned.
> >
> > %zd is appropriate for ssize_t.
>
> It's signed (and not a ssize_t, while we are at it). If you want to be
> pedantic, use %td since we are dealing with ptrdiff_t here.
*Ugh*
We are not doing homegrown offsetof(), so it's really size_t. My apologies.
Yes, that should be> %zu (OTOH, %zd will do the same unless we have 2Gb
struct somewhere ;-)
> BTW, we ought to add 't' modifier in vsnpritf()...
-
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/