diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-04-27 22:07:37 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2016-06-02 01:29:19 +0100 |
commit | 15899f2c4c35fb64744a685c310be97dba5a4f0d (patch) | |
tree | 6550b3c2dd861c64016a84988ee7685587473ac2 /lib/stdlib/assert.c | |
parent | ab576e7da6dc5416e8e7aa4d05e819a67e4cb232 (diff) |
assert: revert removal of assertion debug print
Allwinner removed the code which prints a meaningful debug output
if an assertion triggered.
Revert that part to give a clue about what's wrong instead of just
silently halting.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'lib/stdlib/assert.c')
-rw-r--r-- | lib/stdlib/assert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stdlib/assert.c b/lib/stdlib/assert.c index b6570da..90a1afe 100644 --- a/lib/stdlib/assert.c +++ b/lib/stdlib/assert.c @@ -36,5 +36,6 @@ void __assert (const char *function, const char *file, unsigned int line, const char *assertion) { + tf_printf("ASSERT: %s <%d> : %s\n", function, line, assertion); while(1); } |