diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-08-18 18:56:03 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-09-05 17:12:32 +0100 |
commit | e66593f8242d49dd05f6b9c4a5121fa466a158aa (patch) | |
tree | 157fb088551e543a2591dd91c10b69474ba6ddec /src/flash/nor/psoc5lp.c | |
parent | 2f62883161fe4cdc32826a7bc6826ad82516233e (diff) | |
download | riscv-openocd-e66593f8242d49dd05f6b9c4a5121fa466a158aa.zip riscv-openocd-e66593f8242d49dd05f6b9c4a5121fa466a158aa.tar.gz riscv-openocd-e66593f8242d49dd05f6b9c4a5121fa466a158aa.tar.bz2 |
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
Diffstat (limited to 'src/flash/nor/psoc5lp.c')
-rw-r--r-- | src/flash/nor/psoc5lp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/psoc5lp.c b/src/flash/nor/psoc5lp.c index 25a0ee0..c651dea 100644 --- a/src/flash/nor/psoc5lp.c +++ b/src/flash/nor/psoc5lp.c @@ -919,7 +919,7 @@ static int psoc5lp_eeprom_write(struct flash_bank *bank, memset(buf + byte_count, bank->default_padded_value, EEPROM_ROW_SIZE - byte_count); - LOG_DEBUG("Padding %d bytes", EEPROM_ROW_SIZE - byte_count); + LOG_DEBUG("Padding %" PRIu32 " bytes", EEPROM_ROW_SIZE - byte_count); retval = psoc5lp_spc_load_row(target, SPC_ARRAY_EEPROM, buf, EEPROM_ROW_SIZE); if (retval != ERROR_OK) |