projects
/
tools
/
lthor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
864e5a8
)
Fix busid param parsing
author
Krzysztof Opasiak
<k.opasiak@samsung.com>
Mon, 5 Sep 2016 07:10:16 +0000
(09:10 +0200)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 10 Apr 2017 07:48:57 +0000
(16:48 +0900)
Change-Id: Ia3e6047ccd9f07d1a834c4eb58408d0afca1c8c3
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
libthor/thor_usb.c
patch
|
blob
|
history
diff --git
a/libthor/thor_usb.c
b/libthor/thor_usb.c
index 9c93af2513f88dffd7bc29abdbd992916dfd6a6c..fbb35aa42cff9662261cd077ec7398da1844b92b 100644
(file)
--- a/
libthor/thor_usb.c
+++ b/
libthor/thor_usb.c
@@
-73,6
+73,7
@@
static int check_busid_match(const char *expected, libusb_device *dev)
expected = strchr(expected, '-');
if (!expected)
return -EINVAL;
+ ++expected;
nports = libusb_get_port_numbers(dev, (uint8_t *)dev_port, sizeof(dev_port));
if (nports < 0)
@@
-94,6
+95,7
@@
static int check_busid_match(const char *expected, libusb_device *dev)
else
break;
}
+ ++expected;
}
return 0;