Skip to content
Commit d266f669 authored by Wolfgang Denk's avatar Wolfgang Denk Committed by Tom Rini
Browse files

lib/vsprintf.c: don't special-case pointers to address null



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: default avatarWolfgang Denk <wd@denx.de>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 085b9c3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment