Skip to contentSkip to conversation

Fix for 20762:a1d0a575b4ba

PATCH New KUWAMURA Shin'ya 1 participant 1 message Jan 8, 2010 Arm/actions semi architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix for 20762:a1d0a575b4ba

Hi,

This patch fixes the following error:
File "usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 908, in physinfo

    info['cpu_mhz'] = info['cpu_khz'] / 1000

TypeError: unsupported operand type(s) for /: 'str' and 'int'

Signature · 1 line
  KUWAMURA Shin'ya

# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1262915341 -32400
# Node ID 78fa6d21dd293e0abc0bc0b9be0c22c606db6e56 # Parent cba56c13ca3eba67a3b56e78256418fd62445a95 Fix for 20762:a1d0a575b4ba

tools/python/xen/lowlevel/xc/xc.c +1 -1
diff -r cba56c13ca3e -r 78fa6d21dd29 tools/python/xen/lowlevel/xc/xc.c
@@ -1149,7 +1149,7 @@ static PyObject *pyxc_physinfo(XcObject 
             nr_nodes++;
     }
 
-    ret_obj = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i,s:l,s:l,s:l,s:i,s:s:s:s}",
+    ret_obj = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i,s:i,s:l,s:l,s:l,s:i,s:s:s:s}",
                             "nr_nodes",         nr_nodes,
                             "max_node_id",      info.max_node_id,
                             "max_cpu_id",       info.max_cpu_id,

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel