Commit 7531473c308d133994160bf45141ced00a4f5e0f

Authored by Gavin Shan
Committed by Michael Ellerman
1 parent 3b8a3c0109

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.

Fixes: 2013add4ce73 ("powerpc/eeh: Show hex prefix for PE state sysfs")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

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