POST: replace the LOGBUFF_INITIALIZED flag in gd->post_log_word (1 << 31) with the GD_FLG_LOGINIT flag in gd->flags.
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
7845d49094
commit
0e15ddd11f
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user