]> git.sur5r.net Git - u-boot/blobdiff - lib/panic.c
common: print \n in initr_scsi()
[u-boot] / 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);
+}