diff options
author | Alon Levy <alevy@redhat.com> | 2011-09-21 18:52:22 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-09-21 18:52:22 +0300 |
commit | 5e181c815b6e9c3846c55c6e04ec0ebe94233edb (patch) | |
tree | 6eb7dae8ddb92ea4e8c9f36db1b1cbbfd6ccccf3 | |
parent | e4e99b2f445cafa57892017e520e9c9d330f72c1 (diff) |
more verbose bios version print on start
-rwxr-xr-x | spice2 | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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')]: |