Clean up many C99 integer types format specifiers
This eliminates most of the warnings reported when building for arm-none-eabi (newlib). Hsiangkai, there're many similar warnings left in your nds32 files, I didn't have the nerve to clean them all, probably you could pick it up. Change-Id: Id3bbe2ed2e3f1396290e55bea4c45068165a4810 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1674 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
75b4cbe356
commit
f132fcf636
@@ -258,7 +258,7 @@ static int stm32x_unlock_reg(struct target *target)
|
||||
return retval;
|
||||
|
||||
if (ctrl & FLASH_LOCK) {
|
||||
LOG_ERROR("flash not unlocked STM32_FLASH_CR: %x", ctrl);
|
||||
LOG_ERROR("flash not unlocked STM32_FLASH_CR: %" PRIx32, ctrl);
|
||||
return ERROR_TARGET_FAILURE;
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ static int stm32x_unlock_option_reg(struct target *target)
|
||||
return retval;
|
||||
|
||||
if (ctrl & OPT_LOCK) {
|
||||
LOG_ERROR("options not unlocked STM32_FLASH_OPTCR: %x", ctrl);
|
||||
LOG_ERROR("options not unlocked STM32_FLASH_OPTCR: %" PRIx32, ctrl);
|
||||
return ERROR_TARGET_FAILURE;
|
||||
}
|
||||
|
||||
@@ -589,7 +589,7 @@ static int stm32x_write_block(struct flash_bank *bank, uint8_t *buffer,
|
||||
LOG_ERROR("flash memory write protected");
|
||||
|
||||
if (error != 0) {
|
||||
LOG_ERROR("flash write failed = %08x", error);
|
||||
LOG_ERROR("flash write failed = %08" PRIx32, error);
|
||||
/* Clear but report errors */
|
||||
target_write_u32(target, STM32_FLASH_SR, error);
|
||||
retval = ERROR_FAIL;
|
||||
|
||||
Reference in New Issue
Block a user