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: RedBoot: Fix FREEMEMLO expansion.


On Wed, May 04, 2005 at 11:31:20AM -0600, Gary Thomas wrote:
> On Wed, 2005-05-04 at 14:54 +0100, David Vrabel wrote:
> > Hi,
> > 
> > The recent change to RedBoot's src/alias.c broke the expansion of the
> > FREEMEMLO and FREEMEMHI aliases.  %p outputs a leading '0x' whereas %x
> > does not.
> 
> So why not just use %p?

I've not checked the sources.... but i think its becasue its not a
pointer, its an unsigned int/long or something. When i added format
checking to printf, diag_printf recently, it caused gcc to give a
warning when you try to print something with %p which is not a
pointer.

        Andrew


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