samples: drivers: spi_flash: use printf argument consistent with format
Coverity thinks this is a long because FLASH_TEST_REGION_OFFSET is a signed value. Zephyr doesn't use standard types so make it a u32_t. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
ab6179c6fe
commit
bd56c2ecf2
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ void main(void)
|
|||
printf("Data read does not match data written!!\n");
|
||||
while (rp < rpe) {
|
||||
printf("%08x wrote %02x read %02x %s\n",
|
||||
FLASH_TEST_REGION_OFFSET + (rp - buf),
|
||||
(u32_t)(FLASH_TEST_REGION_OFFSET + (rp - buf)),
|
||||
*wp, *rp, (*rp == *wp) ? "match" : "MISMATCH");
|
||||
++rp;
|
||||
++wp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue