summaryrefslogtreecommitdiff
path: root/common/cmd_log.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2002-11-05 21:01:48 +0000
committerwdenk <wdenk>2002-11-05 21:01:48 +0000
commit2a3cb0207614427d301a4a6f8041267cada14bd8 (patch)
treea2f11d8eae5a70220fc39b15256edda024fb6856 /common/cmd_log.c
parent56f94be3ef63732384063e110277ed89701b6471 (diff)
downloadu-boot-imx-2a3cb0207614427d301a4a6f8041267cada14bd8.zip
u-boot-imx-2a3cb0207614427d301a4a6f8041267cada14bd8.tar.gz
u-boot-imx-2a3cb0207614427d301a4a6f8041267cada14bd8.tar.bz2
Quick & Dirty fix for log buffer problem when environment is not set
Trigger watchdog when reading the env - this might take a while. Set debugging baud rate for KUP4K board
Diffstat (limited to 'common/cmd_log.c')
-rw-r--r--common/cmd_log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_log.c b/common/cmd_log.c
index 2e42f10..1748aa6 100644
--- a/common/cmd_log.c
+++ b/common/cmd_log.c
@@ -92,7 +92,7 @@ void logbuff_log(char *msg)
{
DECLARE_GLOBAL_DATA_PTR;
- if (gd->flags & GD_FLG_RELOC) {
+ if ((gd->flags & GD_FLG_RELOC)&&(getenv ("logstart") != NULL)) {
logbuff_printk(msg);
} else {
puts(msg);
@@ -109,10 +109,10 @@ void logbuff_reset (void)
ext_tag=(unsigned long *)(log_buf)-3;
ext_log_start=(unsigned long *)(log_buf)-2;
ext_logged_chars=(unsigned long *)(log_buf)-1;
-// if (*ext_tag!=LOGBUFF_MAGIC) {
+/* if (*ext_tag!=LOGBUFF_MAGIC) { */
logged_chars=log_start=0;
*ext_tag=LOGBUFF_MAGIC;
-// }
+/* } */
log_size=logged_chars;
}
}