From: Daniel Stekloff Subject: [PATCH] Trivial fix for using xm dmesg -c Date: Tue, 30 May 2006 11:42:11 -0700 Message-ID: <1149014532.4177.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-B51/1IR8XyIZIT+5GyU4" 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-devel List-Id: xen-devel@lists.xenproject.org --=-B51/1IR8XyIZIT+5GyU4 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, The "xm dmesg -c" command to clear dmesg wasn't working for me: [root@... ~]# xm dmesg -c Error: 'xm dmesg' requires 0 argument. dmesg [-c|--clear] Read or clear Xen's message buffer This patch fixed it for me. Thanks, Dan --=-B51/1IR8XyIZIT+5GyU4 Content-Disposition: attachment; filename=xm_dmesg_arg_check_fix.patch Content-Type: text/x-patch; name=xm_dmesg_arg_check_fix.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit # HG changeset patch # User stekloff@elm3b216.beaverton.ibm.com # Node ID 532b7355be80172464f4c73d22c0d309923ccf52 # Parent 13d6d993d79724d86a0c9ac556a7f884baed98ae The xm dmesg command wasn't taking the -c/--clear options because of incorrect values to arg_check(). Patch simply allows for the possible option with arg_check(). Signed-off-by: Daniel Stekloff diff -r 13d6d993d797 -r 532b7355be80 tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Mon May 22 16:30:25 2006 +++ b/tools/python/xen/xm/main.py Tue May 30 18:46:10 2006 @@ -762,7 +762,7 @@ os.execvp('xentop', ['xentop']) def xm_dmesg(args): - arg_check(args, "dmesg", 0) + arg_check(args, "dmesg", 0, 1) gopts = Opts(use="""[-c|--clear] --=-B51/1IR8XyIZIT+5GyU4 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 --=-B51/1IR8XyIZIT+5GyU4--