Messages in this thread | | | Date | Sat, 7 Aug 2004 00:07:47 +0100 | From | viro@parcelfa ... | Subject | Re: PATCH: fix some 32bit isms |
| |
On Sat, Aug 07, 2004 at 12:03:05AM +0100, viro@parcelfarce.linux.theplanet.co.uk 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |