lkml.org 
[lkml]   [2004]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PATCH: fix some 32bit isms
Date
Followup to:  <20040728092334.74e0cfcd.akpm@osdl.org>
By author: Andrew Morton <akpm@osdl.org>
In newsgroup: linux.dev.kernel
>
> Alan Cox <alan@redhat.com> wrote:
> >
> > printk(MYIOC_s_ERR_FMT
> > "Invalid IOC facts reply, msgLength=%d offsetof=%d!\n",
> > - ioc->name, facts->MsgLength, (offsetof(IOCFactsReply_t,
> > + ioc->name, facts->MsgLength, (int)(offsetof(IOCFactsReply_t,
>
> printk expects %zd for a size_t
>

It should be %zu, since size_t is unsigned.

%zd is appropriate for ssize_t.

-hpa
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.089 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site