History

powerpc/eeh: Fix PE state format

Obviously I had wrong format given to the PE state output from /sys/bus/pci/devices/xxxx/eeh_pe_state with some typoes, which was introduced by commit 2013add4ce73. The patch fixes it up.

Gavin Shan committed 11 years ago

Commit 75314731 parent 3b8a3c01 file · +1 −1Browse files

Unified · Split

arch/powerpc/kernel/eeh_sysfs.c+1−1
@@ -65,7 +65,7 @@ static ssize_t eeh_pe_state_show(struct device *dev, · 64 unmodified lines
6565 return -ENODEV;
6666
6767 state = eeh_ops->get_state(edev->pe, NULL);
68− return sprintf(buf, "%0x08x %0x08x\n",
68+ return sprintf(buf, "0x%08x 0x%08x\n",
6969 state, edev->pe->state);
7070 }
7171