diff mbox series

[6/6] core/hmi: Display chip location code while displaying core FIR.

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

Commit Message

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

No functionality change.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
---
 core/hmi.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/core/hmi.c b/core/hmi.c
index 5b99984..eb4faa3 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -319,6 +319,7 @@  static bool decode_core_fir(struct cpu_thread *cpu,
 	int i;
 	bool found = false;
 	int64_t ret;
+	const char *loc;
 
 	/* Sanity check */
 	if (!cpu || !hmi_evt)
@@ -349,7 +350,9 @@  static bool decode_core_fir(struct cpu_thread *cpu,
 	if (!core_fir)
 		return false;
 
-	prlog(PR_INFO, "CHIP ID: %x, CORE ID: %x, FIR: %016llx\n",
+	loc = chip_loc_code(cpu->chip_id);
+	prlog(PR_INFO, "[Loc: %s]: CHIP ID: %x, CORE ID: %x, FIR: %016llx\n",
+			loc ? loc : "Not Available",
 			cpu->chip_id, core_id, core_fir);
 
 	/* Check CORE FIR bits and populate HMI event with error info. */