]> git.sur5r.net Git - u-boot/commit
tiny-printf: Avoid printing NULL strings
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2015 12:22:46 +0000 (05:22 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:22 +0000 (19:06 -0700)
commit8e31681c5a5a2fd6bbdf751bcc900a4481e2fa29
tree342441dd9382f84f8e1fd52c089ba394b378a97f
parent9ab401ae0eb0386e300f24262c3b9178892769aa
tiny-printf: Avoid printing NULL strings

Add a check for NULL strings to avoid printing junk to the console.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
lib/tiny-printf.c