compile-time enforcement of printf strings

This commit is contained in:
Matthew Kennedy 2024-06-10 01:21:52 -07:00
parent e7d2b1c17c
commit 7421bb332e
1 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ _FAIL_:
nm_bsp_sleep(1);
spi_cmd(CMD_RESET, 0, 0, 0, 0);
spi_cmd_rsp(CMD_RESET);
M2M_ERR("Reset and retry %d %x %x\n",retry,addr,u32data);
M2M_ERR("Reset and retry %d %x %x\n", retry, (unsigned int)addr, (unsigned int)u32data);
nm_bsp_sleep(1);
retry--;
if(retry) goto _RETRY_;
@ -618,7 +618,7 @@ _FAIL_:
nm_bsp_sleep(1);
spi_cmd(CMD_RESET, 0, 0, 0, 0);
spi_cmd_rsp(CMD_RESET);
M2M_ERR("Reset and retry %d %x %d\n",retry,addr,size);
M2M_ERR("Reset and retry %d %x %d\n", retry, (unsigned int)addr, size);
nm_bsp_sleep(1);
retry--;
if(retry) goto _RETRY_;