Fixup compilation of printf-like functions with uint32_t args. (#17904)
This commit is contained in:
parent
543f54a483
commit
94e8701b3e
2 changed files with 14 additions and 14 deletions
|
@ -207,7 +207,7 @@ flash_status_t flash_erase_sector(uint32_t addr) {
|
|||
|
||||
/* Check that the address exceeds the limit. */
|
||||
if ((addr + (EXTERNAL_FLASH_SECTOR_SIZE)) >= (EXTERNAL_FLASH_SIZE) || ((addr % (EXTERNAL_FLASH_SECTOR_SIZE)) != 0)) {
|
||||
dprintf("Flash erase sector address over limit! [addr:0x%x]\n", (uint32_t)addr);
|
||||
dprintf("Flash erase sector address over limit! [addr:0x%lx]\n", (uint32_t)addr);
|
||||
return FLASH_STATUS_ERROR;
|
||||
}
|
||||
|
||||
|
@ -247,7 +247,7 @@ flash_status_t flash_erase_block(uint32_t addr) {
|
|||
|
||||
/* Check that the address exceeds the limit. */
|
||||
if ((addr + (EXTERNAL_FLASH_BLOCK_SIZE)) >= (EXTERNAL_FLASH_SIZE) || ((addr % (EXTERNAL_FLASH_BLOCK_SIZE)) != 0)) {
|
||||
dprintf("Flash erase block address over limit! [addr:0x%x]\n", (uint32_t)addr);
|
||||
dprintf("Flash erase block address over limit! [addr:0x%lx]\n", (uint32_t)addr);
|
||||
return FLASH_STATUS_ERROR;
|
||||
}
|
||||
|
||||
|
@ -303,7 +303,7 @@ flash_status_t flash_read_block(uint32_t addr, void *buf, size_t len) {
|
|||
}
|
||||
|
||||
#if defined(CONSOLE_ENABLE) && defined(DEBUG_FLASH_SPI_OUTPUT)
|
||||
dprintf("[SPI FLASH R] 0x%08lX: ", addr);
|
||||
dprintf("[SPI FLASH R] 0x%08lx: ", addr);
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
dprintf(" %02X", (int)(((uint8_t *)read_buf)[i]));
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ flash_status_t flash_write_block(uint32_t addr, const void *buf, size_t len) {
|
|||
}
|
||||
|
||||
#if defined(CONSOLE_ENABLE) && defined(DEBUG_FLASH_SPI_OUTPUT)
|
||||
dprintf("[SPI FLASH W] 0x%08lX: ", addr);
|
||||
dprintf("[SPI FLASH W] 0x%08lx: ", addr);
|
||||
for (size_t i = 0; i < write_length; i++) {
|
||||
dprintf(" %02X", (int)(uint8_t)(write_buf[i]));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue