X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fvsprintf.c;h=79dead3996eb14bc82f40a68966be743e0743216;hb=95c0eb198da2b64b04066df9bb5978cd65b1a1a8;hp=c029fbbc48191d58c1afd14c25af8e4ab2bc4971;hpb=40e018815dcf6692eeddffaeba38751b4e8c6af7;p=u-boot diff --git a/lib/vsprintf.c b/lib/vsprintf.c index c029fbbc48..79dead3996 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -730,3 +730,11 @@ void panic(const char *fmt, ...) while (1) ; } + +void __assert_fail(const char *assertion, const char *file, unsigned line, + const char *function) +{ + /* This will not return */ + panic("%s:%u: %s: Assertion `%s' failed.", file, line, function, + assertion); +}