]> git.sur5r.net Git - u-boot/blobdiff - lib/vsprintf.c
efi_selftest: updating the cursor position
[u-boot] / lib / vsprintf.c
index 5f7a5f17dc6917cf539c9b207698408a43eda493..8514f504988ea94119d8774c130ecdbfc5247e67 100644 (file)
@@ -783,6 +783,7 @@ int sprintf(char *buf, const char *fmt, ...)
        return i;
 }
 
+#if CONFIG_IS_ENABLED(PRINTF)
 int printf(const char *fmt, ...)
 {
        va_list args;
@@ -824,15 +825,7 @@ int vprintf(const char *fmt, va_list args)
        puts(printbuffer);
        return i;
 }
-
-
-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);
-}
+#endif
 
 char *simple_itoa(ulong i)
 {