Commit 2013add4 authored by Gavin Shan's avatar Gavin Shan Committed by Michael Ellerman

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent fe7e85c6
...@@ -65,7 +65,7 @@ static ssize_t eeh_pe_state_show(struct device *dev, ...@@ -65,7 +65,7 @@ static ssize_t eeh_pe_state_show(struct device *dev,
return -ENODEV; return -ENODEV;
state = eeh_ops->get_state(edev->pe, NULL); state = eeh_ops->get_state(edev->pe, NULL);
return sprintf(buf, "%08x %08x\n", return sprintf(buf, "%0x08x %0x08x\n",
state, edev->pe->state); state, edev->pe->state);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment