summaryrefslogtreecommitdiffstats
path: root/common/cmd_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_log.c')
-rw-r--r--common/cmd_log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_log.c b/common/cmd_log.c
index 8780da5e29..57ef48461a 100644
--- a/common/cmd_log.c
+++ b/common/cmd_log.c
@@ -86,8 +86,7 @@ void logbuff_init_ptrs (void)
post_word = post_word_load();
#ifdef CONFIG_POST
/* The post routines have setup the word so we can simply test it */
- if (((post_word & 0xffff) == POST_POWERON) ||
- ((post_word & 0xffff) == POST_SLOWTEST)) {
+ if (post_word_load () & POST_COLDBOOT) {
logged_chars = log_size = log_start = 0;
*ext_tag = LOGBUFF_MAGIC;
}
OpenPOWER on IntegriCloud