Skip to content

Commit

Permalink
hw/phb4: Print the PEs in the EEH dump in hex
Browse files Browse the repository at this point in the history
Linux always displays the PE number in hexidecimal while skiboot
displays the PEST index (PE number) in decimal. This makes correlating
errors between Skiboot and Linux more annoying than it should be so
this patch makes Skiboot print the PEST number in hex.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
oohal authored and stewartsmith committed Jul 26, 2018
1 parent 2e55c6b commit 2710351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/phb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ static void phb4_eeh_dump_regs(struct phb4 *p)
for (i = 0; i < OPAL_PHB4_NUM_PEST_REGS; i++) {
if (!s->pestA[i] && !s->pestB[i])
continue;
PHBERR(p, " PEST[%03d] = %016llx %016llx\n",
PHBERR(p, " PEST[%03x] = %016llx %016llx\n",
i, s->pestA[i], s->pestB[i]);
}
free(s);
Expand Down

0 comments on commit 2710351

Please sign in to comment.