diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-07 09:50:17 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-07 09:50:17 +0100 |
commit | e926e7d1a94d3d3bb61af5793b2d0654a908f21a (patch) | |
tree | b119d4d24fc22b63dd35db756ae405ee2e9c6410 /tools/misc | |
parent | 40af606c02e8caaa824213a7eb2232c6b166dc88 (diff) | |
download | xen-e926e7d1a94d3d3bb61af5793b2d0654a908f21a.tar.gz xen-e926e7d1a94d3d3bb61af5793b2d0654a908f21a.tar.bz2 xen-e926e7d1a94d3d3bb61af5793b2d0654a908f21a.zip |
xenpm: remove wrong and pointless "current" indicator
Using the CPU number to compare with an index into an array containing
only a subset of CPUs isn't valid. And indicator isn't necessary here
at all since the CPU number being dealt with gets printed right before
this line.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/xenpm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c index 19a6e2f2ba..d92ff2ad8a 100644 --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -499,10 +499,7 @@ static void print_cpufreq_para(int cpuid, struct xc_get_cpufreq_para *p_cpufreq) printf("affected_cpus :"); for ( i = 0; i < p_cpufreq->cpu_num; i++ ) - if ( i == cpuid ) - printf(" *%d", p_cpufreq->affected_cpus[i]); - else - printf(" %d", p_cpufreq->affected_cpus[i]); + printf(" %d", p_cpufreq->affected_cpus[i]); printf("\n"); printf("cpuinfo frequency : max [%u] min [%u] cur [%u]\n", |