diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-09-05 09:10:16 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-09-05 09:10:16 +0200 |
commit | 5fb14f44cb9bd7285e2605bec143985e9a62a02f (patch) | |
tree | ed2e8861accc13474b7aead4df10838ca216f284 | |
parent | 2e4d8e56dd7d35d08fede88b3f769193adc603d8 (diff) | |
download | lthor-5fb14f44cb9bd7285e2605bec143985e9a62a02f.tar.gz lthor-5fb14f44cb9bd7285e2605bec143985e9a62a02f.tar.bz2 lthor-5fb14f44cb9bd7285e2605bec143985e9a62a02f.zip |
Fix busid param parsing
Change-Id: Ia3e6047ccd9f07d1a834c4eb58408d0afca1c8c3
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r-- | libthor/thor_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libthor/thor_usb.c b/libthor/thor_usb.c index 9c93af2..fbb35aa 100644 --- 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; |