[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/misc/xenpm: fix get-cpu-topology



# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1279046088 -3600
# Node ID 41c51b6cf5bcad9d0d4ac51bfdb0213326f89d41
# Parent  c71d28c5c6fbf6d6704000ae2ec5962cad012e1f
tools/misc/xenpm: fix get-cpu-topology

fix get-cpu-topology

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
---
 tools/misc/xenpm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r c71d28c5c6fb -r 41c51b6cf5bc tools/misc/xenpm.c
--- a/tools/misc/xenpm.c        Tue Jul 13 19:28:13 2010 +0100
+++ b/tools/misc/xenpm.c        Tue Jul 13 19:34:48 2010 +0100
@@ -858,7 +858,7 @@ void cpu_topology_func(int argc, char *a
         info.max_cpu_index = MAX_NR_CPU-1;
 
     printf("CPU\tcore\tsocket\tnode\n");
-    for ( i = 0; i < info.max_cpu_index; i++ )
+    for ( i = 0; i <= info.max_cpu_index; i++ )
     {
         if ( cpu_to_core[i] == INVALID_TOPOLOGY_ID )
             continue;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.