summaryrefslogtreecommitdiff
path: root/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-11-01 11:20:22 +0200
committerAvi Kivity <avi@redhat.com>2009-11-01 11:20:22 +0200
commita006a4ebae2faf7b280d97cb2cd05911eda06033 (patch)
tree535c3476b9ffdeddfe849b09938bd48a86b4ef0f /kvm
parentvmxcap: report MISC and EPT/VPID capabilities (diff)
downloadqemu-kvm-a006a4ebae2faf7b280d97cb2cd05911eda06033.tar.gz
qemu-kvm-a006a4ebae2faf7b280d97cb2cd05911eda06033.tar.bz2
qemu-kvm-a006a4ebae2faf7b280d97cb2cd05911eda06033.zip
vmxcap: improve bool formatting
yes/no replaces True/False. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm')
-rwxr-xr-xkvm/scripts/vmxcap3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvm/scripts/vmxcap b/kvm/scripts/vmxcap
index ec909b33e..b7f58acb2 100755
--- a/kvm/scripts/vmxcap
+++ b/kvm/scripts/vmxcap
@@ -79,7 +79,8 @@ class Misc(object):
fmt = int
else:
lo = hi = bits
- fmt = bool
+ 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))