mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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 <alex.kiernan@gmail.com>
This commit is contained in:
@@ -45,3 +45,11 @@ void panic(const char *fmt, ...)
|
||||
#endif
|
||||
panic_finish();
|
||||
}
|
||||
|
||||
void __assert_fail(const char *assertion, const char *file, unsigned int line,
|
||||
const char *function)
|
||||
{
|
||||
/* This will not return */
|
||||
panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,
|
||||
assertion);
|
||||
}
|
||||
|
Reference in New Issue
Block a user