From e66593f8242d49dd05f6b9c4a5121fa466a158aa Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Tue, 18 Aug 2020 18:56:03 +0200 Subject: 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 Reviewed-on: http://openocd.zylin.com/5816 Tested-by: jenkins --- src/flash/nor/tms470.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flash/nor/tms470.c') diff --git a/src/flash/nor/tms470.c b/src/flash/nor/tms470.c index 611688c..3004682 100644 --- a/src/flash/nor/tms470.c +++ b/src/flash/nor/tms470.c @@ -901,7 +901,7 @@ static int tms470_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t tms470_read_part_info(bank); - LOG_INFO("Writing %" PRId32 " bytes starting at " TARGET_ADDR_FMT, + LOG_INFO("Writing %" PRIu32 " bytes starting at " TARGET_ADDR_FMT, count, bank->base + offset); /* set GLBCTRL.4 */ -- cgit v1.1