diff mbox series

[v2,5/6] core/hmi: Do not display FIR details if none of the bits are set.

Message ID 151314268212.30276.9373335109876983471.stgit@jupiter.in.ibm.com
State Accepted
Headers show
Series opal/hmi: Improve HMI log messages | expand

Commit Message

Mahesh J Salgaonkar Dec. 13, 2017, 5:24 a.m. UTC
From: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>

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>
---
 core/hmi.c |    3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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);