aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jtag/drivers/stlink_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c
index 1a3cc61..a9ee44d 100644
--- a/src/jtag/drivers/stlink_usb.c
+++ b/src/jtag/drivers/stlink_usb.c
@@ -1002,7 +1002,7 @@ static int stlink_usb_version(void *handle)
if (bridge)
p += sprintf(p, "B%d", bridge);
if (swim || !msd)
- p += sprintf(p, "S%d", swim);
+ sprintf(p, "S%d", swim);
LOG_INFO("STLINK %s (API v%d) VID:PID %04X:%04X",
v_str,