From: "Yoshinori Katase" Subject: [PATCH] Fixing bug/typo in main.py Date: Wed, 11 Jan 2006 16:21:21 +0900 Message-ID: <20060111072028.395851C004@mail1-sv.soft.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0015_01C616CB.0F138EF0" 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C616CB.0F138EF0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit This patch fixes a typo of main.py. 1.xm reboot help is shown only 3 arguments. 2.unit name of Mem in xm list header is *MiB* Signed-off-by: Yoshinori Katase Best Regards, Yoshinori Katase diff -r ed7888c838ad tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Tue Jan 10 17:53:44 2006 +++ b/tools/python/xen/xm/main.py Wed Jan 11 16:05:28 2006 @@ -58,7 +58,7 @@ mem_set_help = "mem-set Adjust the current memory usage for a domain" migrate_help = "migrate Migrate a domain to another machine" pause_help = "pause Pause execution of a domain" -reboot_help = "reboot [-w][-a] Reboot a domain" +reboot_help = "reboot [-w][-a][-R|-H] Reboot a domain" restore_help = "restore Create a domain from a saved state file" save_help = "save Save domain state (and config) to file" shutdown_help ="shutdown [-w][-a][-R|-H] Shutdown a domain" @@ -377,7 +377,7 @@ def xm_brief_list(doms): - print 'Name ID Mem(MiB) VCPUs State Time(s)' + print 'Name ID Mem(MB) VCPUs State Time(s)' for dom in doms: d = parse_doms_info(dom) if (d['ssidref'] != 0): ------=_NextPart_000_0015_01C616CB.0F138EF0 Content-Type: application/octet-stream; name="main_typo.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="main_typo.patch" diff -r ed7888c838ad tools/python/xen/xm/main.py=0A= --- a/tools/python/xen/xm/main.py Tue Jan 10 17:53:44 2006=0A= +++ b/tools/python/xen/xm/main.py Wed Jan 11 16:10:43 2006=0A= @@ -58,7 +58,7 @@=0A= mem_set_help =3D "mem-set Adjust the current = memory usage for a domain"=0A= migrate_help =3D "migrate Migrate a domain to = another machine"=0A= pause_help =3D "pause Pause execution of a = domain"=0A= -reboot_help =3D "reboot [-w][-a] Reboot a domain"=0A= +reboot_help =3D "reboot [-w][-a][-R|-H] Reboot a domain"=0A= restore_help =3D "restore Create a domain from = a saved state file"=0A= save_help =3D "save Save domain state = (and config) to file"=0A= shutdown_help =3D"shutdown [-w][-a][-R|-H] Shutdown a domain"=0A= @@ -377,7 +377,7 @@=0A= =0A= =0A= def xm_brief_list(doms):=0A= - print 'Name ID Mem(MiB) VCPUs State = Time(s)'=0A= + print 'Name ID Mem(MB) VCPUs State = Time(s)'=0A= for dom in doms:=0A= d =3D parse_doms_info(dom)=0A= if (d['ssidref'] !=3D 0):=0A= ------=_NextPart_000_0015_01C616CB.0F138EF0 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 ------=_NextPart_000_0015_01C616CB.0F138EF0--