aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/xenpm.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-10-09 10:16:49 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-10-09 10:16:49 +0100
commit6de3c93f7f4970ddc5b5344b0231de0755d7a8f6 (patch)
tree5f5e2bdcc074aa0cd6db49e618ba1510c7263ad4 /tools/misc/xenpm.c
parent4ec4b58e0006f7172abde125534b7b440b78fd19 (diff)
downloadxen-6de3c93f7f4970ddc5b5344b0231de0755d7a8f6.tar.gz
xen-6de3c93f7f4970ddc5b5344b0231de0755d7a8f6.tar.bz2
xen-6de3c93f7f4970ddc5b5344b0231de0755d7a8f6.zip
xenpm: Fix typo bug.
From: Guanqun Lu <guanqun.lu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/misc/xenpm.c')
-rw-r--r--tools/misc/xenpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c
index b705f0a6fa..fbe72b247e 100644
--- a/tools/misc/xenpm.c
+++ b/tools/misc/xenpm.c
@@ -161,7 +161,7 @@ int main(int argc, char **argv)
break;
}
- ret = xc_pm_get_pxstat(xc_fd, 0, pxstat);
+ ret = xc_pm_get_pxstat(xc_fd, i, pxstat);
if( ret ) {
fprintf(stderr, "failed to get P-states statistics information\n");
free(pxstat->trans_pt);