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-devel

[Xen-devel] [PATCH] symmetricalization of system info command xm info, t

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] symmetricalization of system info command xm info, top, dmesg and log
From: "Yoshinori Katase" <y_katase@xxxxxxxxxxxxxxxx>
Date: Mon, 26 Dec 2005 10:41:26 +0900
Delivery-date: Mon, 26 Dec 2005 01:44:36 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYJvXw9WbRsr/voRjW//hID7WLtOQ==
These xm info, top, dmesg and log requre no parameter.
But log's error message differs from other 3 command's error messages,
when parameter is given.

# xm log 1
Error: 'xm log' requires 0 argument.

   log                              Print the xend log

Other 3 commands ignore parameter.
I think it might be better symmetricalize.

Signed-off-by: Yoshinori Katase <y_katase@xxxxxxxxxxxxxxxx>

Best Regards,
Yoshinori Katase


diff -r 829517be689f tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Dec 23 15:42:46 2005
+++ b/tools/python/xen/xm/main.py       Mon Dec 26 10:16:56 2005
@@ -625,6 +625,8 @@
     server.xend_domain_cpu_sedf_set(dom, *v)

 def xm_info(args):
+    arg_check(args, "info", 0)
+
     from xen.xend.XendClient import server
     info = server.xend_node()

@@ -645,9 +647,12 @@


 def xm_top(args):
+    arg_check(args, "top", 0)
+
     os.execvp('xentop', ['xentop'])

 def xm_dmesg(args):
+    arg_check(args, "dmesg", 0)

     gopts = Opts(use="""[-c|--clear]

Attachment: main_syscommand.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] symmetricalization of system info command xm info, top, dmesg and log, Yoshinori Katase <=