diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:55:05 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:55:05 +0100 |
commit | 00f608a35495122c5cfa86e9fdb7726c6db0a4cd (patch) | |
tree | b7e78d114b507ef00ef3cd66e9a86fa213ee55b8 | |
parent | 22cc6a8b612634955f8b9001c6ec00879d05390c (diff) | |
download | xen-00f608a35495122c5cfa86e9fdb7726c6db0a4cd.tar.gz xen-00f608a35495122c5cfa86e9fdb7726c6db0a4cd.tar.bz2 xen-00f608a35495122c5cfa86e9fdb7726c6db0a4cd.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>
xen-unstable changeset: 21324:3b7228548a64
xen-unstable date: Fri May 07 09:50:17 2010 +0100
-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 b795adc971..109101bd62 100644 --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -495,10 +495,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", |