summaryrefslogtreecommitdiffstats
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
parentc531ff957669cc3dccfdd965a7d57da34c0af550 (diff)
downloadtalos-skiboot-b33ed1e6b6b0d98e4924678fcebb7cc4de671133.tar.gz
talos-skiboot-b33ed1e6b6b0d98e4924678fcebb7cc4de671133.zip
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>
-rw-r--r--core/hmi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hmi.c b/core/hmi.c
index a9954557..5b999844 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);
OpenPOWER on IntegriCloud