aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/linux.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-08-18 18:56:53 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-09-05 17:12:44 +0100
commitd3249fd45a7832ed922ed4227c867c3c674b4812 (patch)
tree83bfc6cd029facca6c0a1481cbb66da975fed582 /src/rtos/linux.c
parent99add6227fe0a3be536f9b83ff6aa7dd63a8d2dc (diff)
downloadriscv-openocd-d3249fd45a7832ed922ed4227c867c3c674b4812.zip
riscv-openocd-d3249fd45a7832ed922ed4227c867c3c674b4812.tar.gz
riscv-openocd-d3249fd45a7832ed922ed4227c867c3c674b4812.tar.bz2
openocd: use proper format with uint32_t
Modify the format strings to properly handle uint32_t data types. Change-Id: I4de49bf02c9e37b72240224c23fc83abe8a4fa83 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5819 Tested-by: jenkins
Diffstat (limited to 'src/rtos/linux.c')
-rw-r--r--src/rtos/linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c
index dbbf97b..44e132d 100644
--- a/src/rtos/linux.c
+++ b/src/rtos/linux.c
@@ -1483,13 +1483,13 @@ static char *linux_ps_command(struct target *target)
if (temp->context)
tmp +=
sprintf(tmp,
- "%" PRId32 "\t\t%" PRId32 "\t\t%" PRIx32 "\t\t%s\n",
+ "%" PRIu32 "\t\t%" PRIu32 "\t\t%" PRIx32 "\t\t%s\n",
temp->pid, temp->oncpu,
temp->asid, temp->name);
else
tmp +=
sprintf(tmp,
- "%" PRId32 "\t\t%" PRId32 "\t\t%" PRIx32 "\t\t%s\n",
+ "%" PRIu32 "\t\t%" PRIu32 "\t\t%" PRIx32 "\t\t%s\n",
temp->pid, temp->oncpu,
temp->asid, temp->name);
}