summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')]: