fdtdec: support multiple phandles in memory carveout
[oweals/u-boot.git] / lib / panic.c
index 0efa134344519f0144523f076e123b22f9118dcc..8e72c265a617e1f2223a008e5375829537b8c49b 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <hang.h>
 #if !defined(CONFIG_PANIC_HANG)
 #include <command.h>
 #endif
@@ -45,3 +46,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);
+}