]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - lib/tiny-printf.c
Merge branch 'master' of git://git.denx.de/u-boot-sh
[karo-tx-uboot.git] / lib / tiny-printf.c
index b334f053cc0ee2645aa3669701f0ec22419bb572..1aa43aba44b5b2428033638574f49e76058f80bc 100644 (file)
@@ -185,3 +185,12 @@ 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();
+}