From: Ryan Harper Subject: [PATCH] remove extra field from vcpuinfo python binding Date: Mon, 17 Oct 2005 18:08:25 -0500 Message-ID: <20051017230825.GC17358@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org There are only six fields in vcpuinfo, also cpumap_t is a u64, so use [1]"K" for parsing cpumap. 1. http://www.python.org/doc/2.4.1/api/arg-parsing.html -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 ryanh@us.ibm.com diffstat output: xc.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Signed-off-by: Ryan Harper --- diff -r 446aa56ca4fe tools/python/xen/lowlevel/xc/xc.c --- a/tools/python/xen/lowlevel/xc/xc.c Mon Oct 17 12:50:28 2005 +++ b/tools/python/xen/lowlevel/xc/xc.c Mon Oct 17 18:00:31 2005 @@ -365,7 +365,7 @@ if ( rc < 0 ) return PyErr_SetFromErrno(xc_error); - info_dict = Py_BuildValue("{s:i,s:i,s:i,s:L,s:i,s:i,s:i}", + info_dict = Py_BuildValue("{s:i,s:i,s:i,s:L,s:i,s:K}", "online", info.online, "blocked", info.blocked, "running", info.running,