aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/at91sam3.c1
-rw-r--r--src/flash/nor/at91sam4.c1
-rw-r--r--src/rtos/linux.c2
3 files changed, 1 insertions, 3 deletions
diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c
index 37b6dd78..aff66dfa 100644
--- a/src/flash/nor/at91sam3.c
+++ b/src/flash/nor/at91sam3.c
@@ -3274,7 +3274,6 @@ static int sam3_write(struct flash_bank *bank,
r = sam3_page_write(pPrivate, page_cur, pagebuffer);
if (r != ERROR_OK)
goto done;
- buffer += count;
}
LOG_DEBUG("Done!");
r = ERROR_OK;
diff --git a/src/flash/nor/at91sam4.c b/src/flash/nor/at91sam4.c
index 4bc511c2..00a54fe1 100644
--- a/src/flash/nor/at91sam4.c
+++ b/src/flash/nor/at91sam4.c
@@ -2066,7 +2066,6 @@ static int sam4_write(struct flash_bank *bank,
r = sam4_page_write(pPrivate, page_cur, pagebuffer);
if (r != ERROR_OK)
goto done;
- buffer += count;
}
LOG_DEBUG("Done!");
r = ERROR_OK;
diff --git a/src/rtos/linux.c b/src/rtos/linux.c
index e249ff49..198f66e0 100644
--- a/src/rtos/linux.c
+++ b/src/rtos/linux.c
@@ -1215,7 +1215,7 @@ int linux_thread_extra_info(struct target *target,
sprintf(tmp_str_ptr, "%d", (int)temp->pid);
tmp_str_ptr += sprintf(tmp_str_ptr, "%s", " | ");
tmp_str_ptr += sprintf(tmp_str_ptr, "%s", name);
- tmp_str_ptr += sprintf(tmp_str_ptr, "%s", temp->name);
+ sprintf(tmp_str_ptr, "%s", temp->name);
char *hex_str =
(char *)calloc(1, strlen(tmp_str) * 2 + 1);
str_to_hex(hex_str, tmp_str);