Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gavin Shan and committed by
Michael Ellerman
2013add4 fe7e85c6

+1 -1
+1 -1
arch/powerpc/kernel/eeh_sysfs.c
··· 65 65 return -ENODEV; 66 66 67 67 state = eeh_ops->get_state(edev->pe, NULL); 68 - return sprintf(buf, "%08x %08x\n", 68 + return sprintf(buf, "%0x08x %0x08x\n", 69 69 state, edev->pe->state); 70 70 } 71 71