aboutsummaryrefslogtreecommitdiff
path: root/core/hmi.c
diff options
context:
space:
mode:
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>2017-12-13 10:54:46 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-12-13 22:04:58 -0600
commitb33ed1e6b6b0d98e4924678fcebb7cc4de671133 (patch)
tree30afa562ef4a76ac9fdf0edc506bc492b8151c2a /core/hmi.c
parentc531ff957669cc3dccfdd965a7d57da34c0af550 (diff)
downloadskiboot-b33ed1e6b6b0d98e4924678fcebb7cc4de671133.zip
skiboot-b33ed1e6b6b0d98e4924678fcebb7cc4de671133.tar.gz
skiboot-b33ed1e6b6b0d98e4924678fcebb7cc4de671133.tar.bz2
core/hmi: Do not display FIR details if none of the bits are set.
So that we don't flood OPAL console logs with information that is not useful. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/hmi.c')
-rw-r--r--core/hmi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hmi.c b/core/hmi.c
index a995455..5b99984 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -346,6 +346,9 @@ static bool decode_core_fir(struct cpu_thread *cpu,
return false;
}
+ if (!core_fir)
+ return false;
+
prlog(PR_INFO, "CHIP ID: %x, CORE ID: %x, FIR: %016llx\n",
cpu->chip_id, core_id, core_fir);