summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorGavin Shan2014-10-01 06:34:51 +0200
committerMichael Ellerman2014-10-01 14:23:34 +0200
commit2013add4ce73c93ae2148969a9ec3ecc8b1e26fa (patch)
tree6105b61b82fa4812f792139de69c45e250a72c45 /arch/powerpc/kernel
parentpowerpc/powernv: Override dma_get_required_mask() (diff)
downloadkernel-qcow2-linux-2013add4ce73c93ae2148969a9ec3ecc8b1e26fa.tar.gz
kernel-qcow2-linux-2013add4ce73c93ae2148969a9ec3ecc8b1e26fa.tar.xz
kernel-qcow2-linux-2013add4ce73c93ae2148969a9ec3ecc8b1e26fa.zip
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>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/eeh_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh_sysfs.c b/arch/powerpc/kernel/eeh_sysfs.c
index 9a44010bd4b5..f19b1e5cb060 100644
--- a/arch/powerpc/kernel/eeh_sysfs.c
+++ b/arch/powerpc/kernel/eeh_sysfs.c
@@ -65,7 +65,7 @@ static ssize_t eeh_pe_state_show(struct device *dev,
return -ENODEV;
state = eeh_ops->get_state(edev->pe, NULL);
- return sprintf(buf, "%08x %08x\n",
+ return sprintf(buf, "%0x08x %0x08x\n",
state, edev->pe->state);
}