aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nand/mxc.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-08-18 18:56:03 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-09-05 17:12:32 +0100
commite66593f8242d49dd05f6b9c4a5121fa466a158aa (patch)
tree157fb088551e543a2591dd91c10b69474ba6ddec /src/flash/nand/mxc.c
parent2f62883161fe4cdc32826a7bc6826ad82516233e (diff)
downloadriscv-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/nand/mxc.c')
-rw-r--r--src/flash/nand/mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/mxc.c b/src/flash/nand/mxc.c
index bc2ae93..2c5de03 100644
--- a/src/flash/nand/mxc.c
+++ b/src/flash/nand/mxc.c
@@ -65,7 +65,7 @@
static const char target_not_halted_err_msg[] =
"target must be halted to use mxc NAND flash controller";
static const char data_block_size_err_msg[] =
- "minimal granularity is one half-word, %" PRId32 " is incorrect";
+ "minimal granularity is one half-word, %" PRIu32 " is incorrect";
static const char sram_buffer_bounds_err_msg[] =
"trying to access out of SRAM buffer bound (addr=0x%" PRIx32 ")";
static const char get_status_register_err_msg[] = "can't get NAND status";