From: Tom Rini Date: Sun, 4 Nov 2012 11:28:42 -0700 Subject: [U-Boot] [PATCH] lib/vsprintf.c: don't special-case pointers to address null In-Reply-To: References: <20121030095927.437502001B0@gemini.denx.de> <1351624792-13853-1-git-send-email-wd@denx.de> Message-ID: <20121104182842.GC15839@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 > > --- > > Acked-by: Joe Hershberger 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: