WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/misc/xenpm: fix get-cpu-topology
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Jul 2010 06:05:33 -0700
Delivery-date: Fri, 16 Jul 2010 06:07:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/misc/xenpm: fix get-cpu-topology, Xen patchbot-unstable <=