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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user