From f2d72f63aa6e2ab41286de870597c47ebebfde9f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 24 Sep 2014 20:00:12 +0300 Subject: Fix URB filtering when no device address is specified If the addresses list is empty don't filter out URBs based on the device address. Signed-off-by: Laurent Pinchart --- usbmon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbmon.py b/usbmon.py index 0bbab3f..9ae4c24 100755 --- a/usbmon.py +++ b/usbmon.py @@ -739,7 +739,7 @@ def main(argv): raise index += 1 - if urb.addr not in addr: + if len(addr) and urb.addr not in addr: continue if endp != -1 and urb.endp != endp: continue -- cgit v1.2.3