Re: [U-Boot] [PATCH v3 33/62] tiny-printf: Support assert()

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass 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 >

[U-Boot] [PATCH v3 33/62] tiny-printf: Support assert()

2016-07-04 Thread Simon Glass
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 --- Changes in v3: None Changes in v2: None lib/tiny-pr