Commit 0ded9595 authored by Patrick Mochel's avatar Patrick Mochel

[power] Fix sysfs state reporting.

parent a7668df2
......@@ -480,11 +480,13 @@ power_attr(disk);
static ssize_t state_show(struct subsystem * subsys, char * buf)
{
struct pm_state * state;
int i;
char * s = buf;
for (state = &pm_states[0]; state->name; state++)
s += sprintf(s,"%s ",state->name);
for (i = 0; i < PM_SUSPEND_MAX; i++) {
if (pm_states[i].name)
s += sprintf(s,"%s ",pm_states[i].name);
}
s += sprintf(s,"\n");
return (s - buf);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment