summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-09-21 18:52:22 +0300
committerAlon Levy <alevy@redhat.com>2011-09-21 18:52:22 +0300
commit5e181c815b6e9c3846c55c6e04ec0ebe94233edb (patch)
tree6eb7dae8ddb92ea4e8c9f36db1b1cbbfd6ccccf3
parente4e99b2f445cafa57892017e520e9c9d330f72c1 (diff)
more verbose bios version print on start
-rwxr-xr-xspice214
1 files changed, 12 insertions, 2 deletions
diff --git a/spice2 b/spice2
index a5027cf..702e2b3 100755
--- a/spice2
+++ b/spice2
@@ -256,12 +256,22 @@ def get_versioned_library_version(lib, version_prefix):
if version_prefix in l]
return max(versions) if len(versions) > 0 else None
+def diagnose_bios_bin(bios_dir):
+ bios_bin = os.path.join(bios_dir, 'bios.bin')
+ print "bios.bin age: %s (%s)" % (oldness(bios_bin), bios_dir)
+
+def diagnose_vgabios_bin(bios_dir):
+ vgabios = os.path.join(bios_dir, 'vgabios.bin')
+ vgabios_qxl = os.path.join(bios_dir, 'vgabios-qxl.bin')
+ print "vgabios.bin age: %s (%s)" % (oldness(vgabios), bios_dir)
+ print "vgabios-qxl.bin age: %s (%s)" % (oldness(vgabios_qxl), bios_dir)
+
def print_qemu_and_spice_versions(which, qemu_exec, clientexe, bios_dir):
base = which + ' '
- bios_bin = os.path.join(bios_dir, 'bios.bin')
print red % (base * (80 / len(base)))
print "QEMU age: %s (%s)" % (oldness(qemu_exec), qemu_exec)
- print "bios.bin age: %s (%s)" % (oldness(bios_bin), bios_dir)
+ diagnose_bios_bin(bios_dir)
+ diagnose_vgabios_bin(bios_dir)
for exe, lib_name, version_prefix in [
(qemu_exec, 'spice-server', 'SPICE_SERVER'),
(clientexe, 'cacard', 'CACARD')]: