Skip to content

Commit

Permalink
core/hmi: Do not display FIR details if none of the bits are set.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
maheshsal authored and stewartsmith committed Dec 14, 2017
1 parent c531ff9 commit b33ed1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/hmi.c
Expand Up @@ -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);

Expand Down

0 comments on commit b33ed1e

Please sign in to comment.