From: Dan Smith Subject: [PATCH] Fix stack dump on improper use of set-vcpus Date: Thu, 03 Nov 2005 14:08:35 -0800 Message-ID: <87k6fpl6zg.fsf@theine.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Developers List-Id: xen-devel@lists.xenproject.org --=-=-= This patch adds an arg_check into the set_vcpus code in xm, so that we don't output a stack trace if <2 arguments are passed. Signed-off-by: Dan Smith --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=set_vcpus_argcheck.patch diff -r 289b73a5ace7 tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Thu Nov 3 08:58:45 2005 +++ b/tools/python/xen/xm/main.py Thu Nov 3 14:03:38 2005 @@ -460,6 +460,8 @@ server.xend_domain_mem_target_set(dom, mem_target) def xm_set_vcpus(args): + arg_check(args, 2, "set-vcpus") + from xen.xend.XendClient import server server.xend_domain_set_vcpus(args[0], int(args[1])) --=-=-= -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-=-=--