This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ECOS] JFFS2 eCos port updated.


David Woodhouse wrote:

The people doing the x86_64 Linux port bitched at me because gcc was bitching at them, because their size_t wasn't an int (according to gcc) and I was printing it with %d.
printf("%lu", (unsigned long)size)

? :-)

TBH I'm not 100% convinced Linux printk actually does %zd either -- it seems to support %Zd instead, bizarrely. I suspect I'll need to fix that too :)
Yep, C99 knows nothing of the Z qualifier. Wouldn't be the first time that C99 or POSIX 1003-1.2001 have copied ideas from the world outside, but slightly modified the semantics :-|.

Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]