mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08: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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user