This is an automated email from Gerrit.

Oleksij Rempel (li...@rempel-privat.de) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4631

-- gerrit

commit 0ffef71091c1f1235b6e25acbbb4ff668f596ffa
Author: Oleksij Rempel <o.rem...@pengutronix.de>
Date:   Sat Aug 4 14:49:35 2018 +0200

    ftdi: extend ftdi_location format
    
    To existing <bus>:<port>,<port> format add <bus>-<port>.<port> support.
    The last format is used by kernel and other drivers.
    
    Change-Id: I6528970d3af4f6a8bf7b27a0f7a763b5957fdf2b
    Signed-off-by: Oleksij Rempel <o.rem...@pengutronix.de>

diff --git a/src/jtag/drivers/mpsse.c b/src/jtag/drivers/mpsse.c
index 06d008b..8924892 100644
--- a/src/jtag/drivers/mpsse.c
+++ b/src/jtag/drivers/mpsse.c
@@ -120,7 +120,7 @@ static bool device_location_equal(libusb_device *device, 
const char *location)
 
        LOG_DEBUG("device path has %i steps", path_len);
 
-       ptr = strtok(loc, ":");
+       ptr = strtok(loc, "-:");
        if (ptr == NULL) {
                LOG_DEBUG("no ':' in path");
                goto done;
@@ -132,7 +132,7 @@ static bool device_location_equal(libusb_device *device, 
const char *location)
 
        path_step = 0;
        while (path_step < 7) {
-               ptr = strtok(NULL, ",");
+               ptr = strtok(NULL, ".,");
                if (ptr == NULL) {
                        LOG_DEBUG("no more tokens in path at step %i", 
path_step);
                        break;

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to