RedBoot: Fix FREEMEMLO expansion.
Andrew Lunn
andrew@lunn.ch
Wed May 4 18:00:00 GMT 2005
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
More information about the Ecos-patches
mailing list