* [Qemu-devel] [PATCH] vmxcap: Fix output formatting
@ 2017-07-20 8:14 Stefan Fritsch
2017-09-24 21:15 ` Michael Tokarev
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Fritsch @ 2017-07-20 8:14 UTC (permalink / raw)
To: qemu-trivial; +Cc: Stefan Fritsch, open list:All patches CC here
From: Stefan Fritsch <stefan_fritsch@genua.de>
One string is longer than 40 chars. Set the field width to 50.
Signed-off-by: Stefan Fritsch <stefan_fritsch@genua.de>
---
scripts/kvm/vmxcap | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap
index d9a6db0bb7..19506f45bf 100755
--- a/scripts/kvm/vmxcap
+++ b/scripts/kvm/vmxcap
@@ -69,7 +69,7 @@ class Control(object):
s = 'forced'
elif one and zero:
s = 'yes'
- print(' %-40s %s' % (self.bits[bit], s))
+ print(' %-50s %s' % (self.bits[bit], s))
class Misc(object):
def __init__(self, name, bits, msr):
@@ -94,7 +94,7 @@ class Misc(object):
def fmt(x):
return { True: 'yes', False: 'no' }[x]
v = (value >> lo) & ((1 << (hi - lo + 1)) - 1)
- print(' %-40s %s' % (self.bits[bits], fmt(v)))
+ print(' %-50s %s' % (self.bits[bits], fmt(v)))
controls = [
Misc(
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] vmxcap: Fix output formatting
2017-07-20 8:14 [Qemu-devel] [PATCH] vmxcap: Fix output formatting Stefan Fritsch
@ 2017-09-24 21:15 ` Michael Tokarev
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2017-09-24 21:15 UTC (permalink / raw)
To: Stefan Fritsch, qemu-trivial
Cc: Stefan Fritsch, open list:All patches CC here
Please excuse me for the long delay with this patch.
20.07.2017 11:14, Stefan Fritsch wrote:
> From: Stefan Fritsch <stefan_fritsch@genua.de>
>
> One string is longer than 40 chars. Set the field width to 50.
The string is this one, I guess:
Miscellaneous data
Hex: 0x100401e5
VMX-preemption timer scale (log2) 5
Store EFER.LMA into IA-32e mode guest control yes
HLT activity state yes
Shutdown activity state yes
While technically after this change, it will be aligned
in one column, I think it is better to reword this one
entry instead: when widening the alignment column, the
whole thing becomes less and less readable, it is more
difficult this way to follow which value correspond to
which entry.
A better wording for this one entry is welcome :)
Thanks,
/mjt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-24 21:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-20 8:14 [Qemu-devel] [PATCH] vmxcap: Fix output formatting Stefan Fritsch
2017-09-24 21:15 ` Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.