Skip to content

Commit

Permalink
powerpc/eeh: Fix PE state format
Browse files Browse the repository at this point in the history
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 2013add. The patch fixes it up.

Fixes: 2013add ("powerpc/eeh: Show hex prefix for PE state sysfs")
Signed-off-by: Gavin Shan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
Gavin Shan authored and mpe committed Nov 26, 2014
1 parent 3b8a3c0 commit 7531473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/eeh_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "%0x08x %0x08x\n",
return sprintf(buf, "0x%08x 0x%08x\n",
state, edev->pe->state);
}

Expand Down

0 comments on commit 7531473

Please sign in to comment.