]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - lib/panic.c
Merge tag 'u-boot-amlogic-20190612' of git://git.denx.de/u-boot-amlogic
[thirdparty/u-boot.git] / lib / panic.c
index 0efa134344519f0144523f076e123b22f9118dcc..bae8a359354216e7b8117d4364af872ebdebbd61 100644 (file)
@@ -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);
+}