Yoshinori Katase
2005-Dec-26 05:17 UTC
[Xen-devel] [PATCH] Fixing an unnatural error message of vcpu-list in main.py
This patch fixes an unnatural error message of vcpu-list. example: # xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 512 1 r----- 1064.6 test1 13 64 1 r----- 83879.7 # xm list 1 13 Error: Domain ''1'' not found when running ''xm list'' # xm vcpu-list 1 13 Name ID VCPU CPU State Time(s) CPU Affinity Error: Domain ''1'' not found when running ''xm vcpu-list'' Vcpu-list''s error message shows an unnecessary header. Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com> 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 14:03:13 2005 @@ -390,7 +390,6 @@ def xm_vcpu_list(args): - print ''Name ID VCPU CPU State Time(s) CPU Affinity'' from xen.xend.XendClient import server if args: @@ -400,6 +399,8 @@ dominfo = map( lambda x: server.xend_domain_vcpuinfo(sxp.child_value(x, ''name'')), doms) + + print ''Name ID VCPU CPU State Time(s) CPU Affinity'' for dom in dominfo: def get_info(n): _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-Jan-03 14:08 UTC
Re: [Xen-devel] [PATCH] Fixing an unnatural error message of vcpu-list in main.py
On Mon, Dec 26, 2005 at 02:17:03PM +0900, Yoshinori Katase wrote:> This patch fixes an unnatural error message of vcpu-list. > > example: > # xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 512 1 r----- 1064.6 > test1 13 64 1 r----- 83879.7 > > # xm list 1 13 > Error: Domain ''1'' not found when running ''xm list'' > # xm vcpu-list 1 13 > Name ID VCPU CPU State Time(s) CPU > Affinity > Error: Domain ''1'' not found when running ''xm vcpu-list'' > > Vcpu-list''s error message shows an unnecessary header. > > Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com>Applied, thanks. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel