Skip to content

Commit 2013add

Browse files
Gavin Shanmpe
authored andcommitted
powerpc/eeh: Show hex prefix for PE state sysfs
As Michael suggested, the hex prefix for the output of EEH PE state sysfs entry (/sys/bus/pci/devices/xxx/eeh_pe_state) is always informative to users. Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent fe7e85c commit 2013add

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/kernel/eeh_sysfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static ssize_t eeh_pe_state_show(struct device *dev,
6565
return -ENODEV;
6666

6767
state = eeh_ops->get_state(edev->pe, NULL);
68-
return sprintf(buf, "%08x %08x\n",
68+
return sprintf(buf, "%0x08x %0x08x\n",
6969
state, edev->pe->state);
7070
}
7171

0 commit comments

Comments
 (0)