diff options
-rwxr-xr-x | usbmon.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -694,7 +694,7 @@ def main(argv): opts = getopt.getopt(argv[1:], 'a:c:C:d:e:f:ho:') outf = sys.stdout - addr = -1 + addr = [] devclass = 'std' endp = -1 capture = None @@ -703,7 +703,7 @@ def main(argv): for opt in opts[0]: if opt[0] == '-a': - addr = int(opt[1]) + addr.append(int(opt[1], 0)) elif opt[0] == '-c': capture = [int(v) for v in opt[1].split('-')] elif opt[0] == '-C': @@ -739,7 +739,7 @@ def main(argv): raise index += 1 - if addr != -1 and urb.addr != addr: + if urb.addr not in addr: continue if endp != -1 and urb.endp != endp: continue |