PRIx32 fix

This commit is contained in:
fabalthazar 2021-04-10 18:24:30 +02:00 committed by UweBonnes
parent 9ec7d05d8d
commit c85c946ce3
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ static int stm32f4_flash_erase(struct target_flash *f, target_addr addr,
/* Check for error */
sr = target_mem_read32(t, FLASH_SR);
if(sr & SR_ERROR_MASK) {
DEBUG_WARN("stm32f4 flash erase: sr error: 0x%" PRIu32 "\n", sr);
DEBUG_WARN("stm32f4 flash erase: sr error: 0x%" PRIx32 "\n", sr);
return -1;
}
return 0;

View File

@ -507,7 +507,7 @@ static int stm32l4_flash_write(struct target_flash *f,
} while (sr & FLASH_SR_BSY);
if(sr & FLASH_SR_ERROR_MASK) {
DEBUG_WARN("stm32l4 flash write error: sr 0x%" PRIu32 "\n", sr);
DEBUG_WARN("stm32l4 flash write error: sr 0x%" PRIx32 "\n", sr);
return -1;
}
return 0;