]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/post.c
* Add support for log buffer which can be passed to Linux kernel's
[karo-tx-uboot.git] / post / post.c
index 4f4b72f6b0371bc00827e7239e9a650a2d31c0bb..d1b8d1ae28bbfd2f240f2377049f9d6e52e65d27 100644 (file)
 #include <watchdog.h>
 #include <post.h>
 
+#ifdef CONFIG_LOGBUFFER
+#include <logbuff.h>
+#endif
+
 #ifdef CONFIG_POST
 
 #define POST_MAX_NUMBER                32
@@ -156,7 +160,7 @@ static int post_run_single (struct post_test *test,
                                post_bootmode_test_on (i);
                        }
 
-                       post_log ("START %s\n", test->cmd);
+                       post_log ("POST %s ", test->cmd);
                }
 
                if ((*test->test) (flags) != 0)
@@ -274,8 +278,12 @@ int post_log (char *format, ...)
        i = vsprintf (printbuffer, format, args);
        va_end (args);
 
+#ifdef CONFIG_LOGBUFFER
+       logbuff_log (printbuffer);
+#else
        /* Send to the stdout file */
        puts (printbuffer);
+#endif
 
        return 0;
 }