ia64/xen-unstable

changeset 15924:e1c80d6bf2cf

xm: Extend width of ID in 'xm list --label' to 5 digits
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Tue Sep 18 15:08:11 2007 +0100 (2007-09-18)
parents da8b8fbe26c2
children f19c741cb55f
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Sep 18 15:06:20 2007 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Sep 18 15:08:11 2007 +0100
     1.3 @@ -931,11 +931,11 @@ def xm_brief_list(doms):
     1.4          print format % d
     1.5  
     1.6  def xm_label_list(doms):
     1.7 -    print '%-40s %3s %5s %5s %10s %9s %-10s' % \
     1.8 +    print '%-40s %5s %5s %5s %10s %9s %-10s' % \
     1.9            ('Name', 'ID', 'Mem', 'VCPUs', 'State', 'Time(s)', 'Label')
    1.10  
    1.11      output = []
    1.12 -    format = '%(name)-40s %(domid)3s %(mem)5d %(vcpus)5d %(state)10s ' \
    1.13 +    format = '%(name)-40s %(domid)5s %(mem)5d %(vcpus)5d %(state)10s ' \
    1.14               '%(cpu_time)8.1f %(seclabel)10s'
    1.15  
    1.16      import xen.util.xsm.xsm as security