This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: [ECOS] JFFS2 eCos port updated.
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: David Woodhouse <dwmw2 at infradead dot org>
- Cc: eCos Patches List <ecos-patches at sources dot redhat dot com>
- Date: Thu, 30 Jan 2003 00:59:44 +0000
- Subject: Re: [ECOS] JFFS2 eCos port updated.
- References: <Pine.LNX.4.44.0301292115420.4791-100000@imladris.demon.co.uk>
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