openocd: fix conversion string for stdint values
Detected while converting 'unsigned' to 'unsigned int'. Use the correct conversion string for stdint values. Change-Id: I99f3dff4c64dfd7acf2bddb130b56e9ebe1e6c60 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8477 Tested-by: jenkins
This commit is contained in:
@@ -1360,8 +1360,8 @@ static void handle_iod_output(struct command_invocation *cmd,
|
||||
if (i % line_modulo == 0) {
|
||||
output_len += snprintf(output + output_len,
|
||||
sizeof(output) - output_len,
|
||||
"0x%8.8x: ",
|
||||
(unsigned)(address + (i*size)));
|
||||
"0x%8.8" PRIx32 ": ",
|
||||
address + (i * size));
|
||||
}
|
||||
|
||||
uint32_t value = 0;
|
||||
|
||||
Reference in New Issue
Block a user