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] Put back the arg_check calls removed recently -- they ar

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Put back the arg_check calls removed recently -- they aren't as useless as I
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Oct 2005 12:08:16 +0000
Delivery-date: Wed, 19 Oct 2005 12:06:21 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 1d88f303c39c6a476ea83c8810b790713615bfb7
# Parent  aa5c62270da72a79f43002886a5aaf705c6b8d38
Put back the arg_check calls removed recently -- they aren't as useless as I
thought they were.
 
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r aa5c62270da7 -r 1d88f303c39c tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Mon Oct 17 15:33:27 2005
+++ b/tools/python/xen/xm/main.py       Mon Oct 17 19:34:10 2005
@@ -370,6 +370,8 @@
     return cpumap
 
 def xm_vcpu_pin(args):
+    arg_check(args, 3, "vcpu-pin")
+
     dom  = args[0]
     vcpu = int(args[1])
     cpumap = cpu_make_map(args[2])
@@ -378,6 +380,8 @@
     server.xend_domain_pincpu(dom, vcpu, cpumap)
 
 def xm_mem_max(args):
+    arg_check(args, 2, "mem-max")
+
     dom = args[0]
     mem = int_unit(args[1], 'm')
 
@@ -385,6 +389,8 @@
     server.xend_domain_maxmem_set(dom, mem)
     
 def xm_mem_set(args):
+    arg_check(args, 2, "mem-set")
+
     dom = args[0]
     mem_target = int_unit(args[1], 'm')
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Put back the arg_check calls removed recently -- they aren't as useless as I, Xen patchbot -unstable <=