From 900e5327d26fb8e6cbad1a3454ac30cb4343f8d4 Mon Sep 17 00:00:00 2001 From: Alexandre Bezroutchko Date: Wed, 7 Nov 2012 00:37:50 +0100 Subject: [PATCH] dom0+vm/usb: improve error reporting in usb_find_unused_frontend() --- dom0/qvm-core/qubesutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dom0/qvm-core/qubesutils.py b/dom0/qvm-core/qubesutils.py index 2711528f..06884653 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -581,6 +581,7 @@ def usb_find_unused_frontend(xs_trans, backend_vm_xid, vm_xid, usb_ver): # here: found an existing frontend already connected to right backend using an appropriate USB version ports = xs.ls(xs_trans, '/local/domain/%d/backend/vusb/%d/%d/port' % (backend_vm_xid, vm_xid, frontend_dev)) if ports is None: + print >> sys.stderr, "No ports in VM %d frontend_dev %d?" % (vm_xid, frontend_dev) last_frontend_dev = frontend_dev continue for port in ports: