[U-Boot] [PATCH] lib/vsprintf.c: don't special-case pointers to address null

Tom Rini trini at ti.com
Sun Nov 4 19:28:42 CET 2012


On Tue, Oct 30, 2012 at 02:23:17PM -0500, Joe Hershberger wrote:
> Hi Wolfgang,
> 
> On Tue, Oct 30, 2012 at 2:19 PM, Wolfgang Denk <wd at denx.de> wrote:
> > The %p format of printf() would print a pointer to address null as
> > "(null)".  This makes sense in a real OS where a NULL pointer must
> > never be dereferenced, but this is a bootloader, and there are cases
> > where accessing the data at address null makes perfect sense.
> >
> > Remove the special case in lib/vsprintf.c using "#if 0" with a comment
> > to make clear this was an intentional change and to stop re-adding
> > this code.
> >
> > Signed-off-by: Wolfgang Denk <wd at denx.de>
> > ---
> 
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121104/2636ff12/attachment.pgp>


More information about the U-Boot mailing list