From c3bd691c13005a4f2be888f12f749de6f124182b Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Fri, 16 Dec 2011 15:35:53 +0100 Subject: [PATCH] --- yaml --- r: 297559 b: refs/heads/master c: 0b37ee65e5d5e626b50852718ed72979160f7be0 h: refs/heads/master i: 297557: 35514a33e6f432e115c3816e764970ff228fef00 297555: ec54642a9298b72b1646975a310a0864b51285c3 297551: 2e8009d19aa5d98a53ea2d6b169b5f98e6a0859e v: v3 --- [refs] | 2 +- trunk/tools/power/cpupower/utils/cpuidle-info.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 1be66ade070d..323033f296b0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e03bd1aa00cff10d8a833442456a07b17dae32b8 +refs/heads/master: 0b37ee65e5d5e626b50852718ed72979160f7be0 diff --git a/trunk/tools/power/cpupower/utils/cpuidle-info.c b/trunk/tools/power/cpupower/utils/cpuidle-info.c index b028267c1376..e076bebde1c4 100644 --- a/trunk/tools/power/cpupower/utils/cpuidle-info.c +++ b/trunk/tools/power/cpupower/utils/cpuidle-info.c @@ -43,9 +43,8 @@ static void cpuidle_cpu_output(unsigned int cpu, int verbose) } printf(_("Number of idle states: %d\n"), idlestates); - printf(_("Available idle states:")); - for (idlestate = 1; idlestate < idlestates; idlestate++) { + for (idlestate = 0; idlestate < idlestates; idlestate++) { tmp = sysfs_get_idlestate_name(cpu, idlestate); if (!tmp) continue; @@ -57,7 +56,7 @@ static void cpuidle_cpu_output(unsigned int cpu, int verbose) if (!verbose) return; - for (idlestate = 1; idlestate < idlestates; idlestate++) { + for (idlestate = 0; idlestate < idlestates; idlestate++) { tmp = sysfs_get_idlestate_name(cpu, idlestate); if (!tmp) continue;