summaryrefslogtreecommitdiff
path: root/post/post.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2002-11-05 16:35:14 +0000
committerwdenk <wdenk>2002-11-05 16:35:14 +0000
commit56f94be3ef63732384063e110277ed89701b6471 (patch)
tree6c7acdd32964b741cb69a8f0b03d5b9891587458 /post/post.c
parent384ae02506f0673070a3516b1858f058a07f85f3 (diff)
downloadu-boot-imx-56f94be3ef63732384063e110277ed89701b6471.zip
u-boot-imx-56f94be3ef63732384063e110277ed89701b6471.tar.gz
u-boot-imx-56f94be3ef63732384063e110277ed89701b6471.tar.bz2
* Add support for log buffer which can be passed to Linux kernel's
syslog mechanism; used especially for POST results. * Patch by Klaus Heydeck, 31 Oct 2002: Add initial support for kup4k board
Diffstat (limited to 'post/post.c')
-rw-r--r--post/post.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/post/post.c b/post/post.c
index 4f4b72f..d1b8d1a 100644
--- a/post/post.c
+++ b/post/post.c
@@ -26,6 +26,10 @@
#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;
}