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:
@@ -624,7 +624,7 @@ static int xcf_probe(struct flash_bank *bank)
|
||||
bank->num_sectors = 4;
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("Unknown flash device ID 0x%X", id);
|
||||
LOG_ERROR("Unknown flash device ID 0x%" PRIX32, id);
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
@@ -640,7 +640,7 @@ static int xcf_probe(struct flash_bank *bank)
|
||||
bank->driver_priv = priv;
|
||||
|
||||
LOG_INFO("product name: %s", product_name(bank));
|
||||
LOG_INFO("device id = 0x%X ", bank->target->tap->idcode);
|
||||
LOG_INFO("device id = 0x%" PRIX32, bank->target->tap->idcode);
|
||||
LOG_INFO("flash size = %d configuration bits",
|
||||
bank->num_sectors * XCF_DATA_SECTOR_SIZE * 8);
|
||||
LOG_INFO("number of sectors = %u", bank->num_sectors);
|
||||
|
||||
Reference in New Issue
Block a user