[U-Boot] [PATCH v3 33/62] tiny-printf: Support assert()
Simon Glass
sjg at chromium.org
Fri Jul 15 05:59:31 CEST 2016
On 4 July 2016 at 11:58, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
> lib/tiny-printf.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
Applied to u-boot-dm
More information about the U-Boot
mailing list