diff options
author | Yuri Tikhonov <yur@emcraft.com> | 2008-05-08 15:46:42 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-08 23:58:56 +0200 |
commit | 0008e2abc8456d51e0e1bfae71e6f14f74790cc5 (patch) | |
tree | d6692d3292ea208e1ae842e1fda8beeddb445195 /common/cmd_log.c | |
parent | 43ad16fbc02f0abb5c8026336b38bc100c208f93 (diff) | |
download | u-boot-lwmon5.tar.gz |
POST: replace the LOGBUFF_INITIALIZED flag in gd->post_log_word (1 << 31) with the GD_FLG_LOGINIT flag in gd->flags.lwmon5
This way we become able to utilize the full post_log_word for POST
activities (overwise, POST ECC, which has 0x8000 ID, could be
erroneously treated as started in post_output_backlog() even if there
was actually no POST ECC run (because of OCM POST failure, for
example).
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Diffstat (limited to 'common/cmd_log.c')
-rw-r--r-- | common/cmd_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_log.c b/common/cmd_log.c index b9f9ba0342..c6e72ac3c0 100644 --- a/common/cmd_log.c +++ b/common/cmd_log.c @@ -107,7 +107,7 @@ void logbuff_init_ptrs (void) if ((s = getenv ("loglevel")) != NULL) console_loglevel = (int)simple_strtoul (s, NULL, 10); - gd->post_log_word |= LOGBUFF_INITIALIZED; + gd->flags |= GD_FLG_LOGINIT; } void logbuff_reset (void) @@ -168,7 +168,7 @@ static void logbuff_puts (const char *s) void logbuff_log(char *msg) { - if ((gd->post_log_word & LOGBUFF_INITIALIZED)) { + if ((gd->flags & GD_FLG_LOGINIT)) { logbuff_printk (msg); } else { /* Can happen only for pre-relocated errors as logging */ |