forked from auracaster/openocd
flash: use proper format with uint32_t
Modify the format strings to properly handle uint32_t data types. Change the type of variable retval in 'nor/ambiqmicro.c' to match both the value to carry and the returned type of the function. Fix the prototype mismatch of function lpc2900_address2sector() between the header and the C file. Change-Id: I68ffba9bd83eec8132f83bff3af993861fd09d84 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5816 Tested-by: jenkins
This commit is contained in:
@@ -615,7 +615,7 @@ static int samv_get_info(struct flash_bank *bank, char *buf, int buf_size)
|
||||
if (ERROR_OK != r)
|
||||
return r;
|
||||
}
|
||||
snprintf(buf, buf_size, "Cortex-M7 detected with %d kB flash",
|
||||
snprintf(buf, buf_size, "Cortex-M7 detected with %" PRIu32 " kB flash",
|
||||
bank->size / 1024);
|
||||
return ERROR_OK;
|
||||
}
|
||||
@@ -661,7 +661,7 @@ COMMAND_HANDLER(samv_handle_gpnvm_command)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
}
|
||||
|
||||
uint32_t v;
|
||||
unsigned v;
|
||||
if (!strcmp("show", CMD_ARGV[0])) {
|
||||
if (who == -1) {
|
||||
showall:
|
||||
|
||||
Reference in New Issue
Block a user