]> git.dujemihanovic.xyz Git - u-boot.git/commit
tiny-printf: Support assert()
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:13 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
commite24091398d50961ece2fcb2924d7c37d329abc09
tree21e3eee7ed96675e87c22bcfc93e0a686923def4
parent162a7a421718a2d15716a78ffb7abb1d94f6b03a
tiny-printf: Support assert()

At present assert() is not supported with tiny-printf, so when DEBUG is
enabled a build error is generated for each assert().

Add an __assert_fail() function to correct this. It prints a message and
then hangs.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/tiny-printf.c