projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
efi_loader: remove duplicate function mem2hex()
[oweals/u-boot.git]
/
lib
/
panic.c
diff --git
a/lib/panic.c
b/lib/panic.c
index 0efa134344519f0144523f076e123b22f9118dcc..bae8a359354216e7b8117d4364af872ebdebbd61 100644
(file)
--- a/
lib/panic.c
+++ b/
lib/panic.c
@@
-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);
+}