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:
@@ -1896,7 +1896,7 @@ static uint32_t sam4_reg_fieldname(struct sam4_chip *pChip,
|
||||
}
|
||||
|
||||
/* show the basics */
|
||||
LOG_USER_N("\t%*s: %*" PRId32 " [0x%0*" PRIx32 "] ",
|
||||
LOG_USER_N("\t%*s: %*" PRIu32 " [0x%0*" PRIx32 "] ",
|
||||
REG_NAME_WIDTH, regname,
|
||||
dwidth, v,
|
||||
hwidth, v);
|
||||
@@ -2549,7 +2549,7 @@ static int sam4_GetDetails(struct sam4_bank_private *pPrivate)
|
||||
sam4_explain_chipid_cidr(pPrivate->pChip);
|
||||
return ERROR_FAIL;
|
||||
} else {
|
||||
LOG_DEBUG("SAM4 Found chip %s, CIDR 0x%08x", pDetails->name, pDetails->chipid_cidr);
|
||||
LOG_DEBUG("SAM4 Found chip %s, CIDR 0x%08" PRIx32, pDetails->name, pDetails->chipid_cidr);
|
||||
}
|
||||
|
||||
/* DANGER: THERE ARE DRAGONS HERE */
|
||||
|
||||
Reference in New Issue
Block a user