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:
@@ -320,7 +320,7 @@ static int msp432_init(struct flash_bank *bank)
|
||||
/* Explicit device type check failed. Report this. */
|
||||
LOG_WARNING(
|
||||
"msp432: Unrecognized MSP432P4 Device ID and Hardware "
|
||||
"Rev (%04X, %02X)", msp432_bank->device_id,
|
||||
"Rev (%04" PRIX32 ", %02" PRIX32 ")", msp432_bank->device_id,
|
||||
msp432_bank->hardware_rev);
|
||||
} else if (MSP432P401X_DEPR == msp432_bank->device_type) {
|
||||
LOG_WARNING(
|
||||
@@ -330,7 +330,7 @@ static int msp432_init(struct flash_bank *bank)
|
||||
/* Explicit device type check failed. Report this. */
|
||||
LOG_WARNING(
|
||||
"msp432: Unrecognized MSP432E4 DID0 and DID1 values "
|
||||
"(%08X, %08X)", msp432_bank->device_id,
|
||||
"(%08" PRIX32 ", %08" PRIX32 ")", msp432_bank->device_id,
|
||||
msp432_bank->hardware_rev);
|
||||
}
|
||||
|
||||
@@ -1012,14 +1012,14 @@ static int msp432_info(struct flash_bank *bank, char *buf, int buf_size)
|
||||
break;
|
||||
case MSP432E4X_GUESS:
|
||||
printed = snprintf(buf, buf_size,
|
||||
"Unrecognized MSP432E4 DID0 and DID1 IDs (%08X, %08X)",
|
||||
"Unrecognized MSP432E4 DID0 and DID1 IDs (%08" PRIX32 ", %08" PRIX32 ")",
|
||||
msp432_bank->device_id, msp432_bank->hardware_rev);
|
||||
break;
|
||||
case MSP432P401X_GUESS:
|
||||
case MSP432P411X_GUESS:
|
||||
default:
|
||||
printed = snprintf(buf, buf_size,
|
||||
"Unrecognized MSP432P4 Device ID and Hardware Rev (%04X, %02X)",
|
||||
"Unrecognized MSP432P4 Device ID and Hardware Rev (%04" PRIX32 ", %02" PRIX32 ")",
|
||||
msp432_bank->device_id, msp432_bank->hardware_rev);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user