From e21c03be6d51ed8ab94885b6829cd0e719778a1e Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Thu, 19 Apr 2018 04:32:56 +0000 Subject: Consolidate __assert_failed into one implementation We had two implementations of __assert_failed which were almost identical, combine them into one. Signed-off-by: Alex Kiernan --- lib/tiny-printf.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/tiny-printf.c') diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index e29377e..5f7e27d 100644 --- a/lib/tiny-printf.c +++ b/lib/tiny-printf.c @@ -383,12 +383,3 @@ int snprintf(char *buf, size_t size, const char *fmt, ...) return ret; } - -void __assert_fail(const char *assertion, const char *file, unsigned line, - const char *function) -{ - /* This will not return */ - printf("%s:%u: %s: Assertion `%s' failed.", file, line, function, - assertion); - hang(); -} -- cgit v1.1