summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-09-24 20:00:12 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-09-24 20:00:12 +0300
commitf2d72f63aa6e2ab41286de870597c47ebebfde9f (patch)
treea4949d9807f7d6929d168eb3f6af1bf08405a8a8
parentd4b17ab3156f53fc4f9346c822ed7a1c02f3ebdb (diff)
Fix URB filtering when no device address is specifiedHEADmaster
If the addresses list is empty don't filter out URBs based on the device address. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xusbmon.py2
1 files changed, 1 insertions, 1 deletions
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