diff --git a/samples/drivers/spi_flash/src/main.c b/samples/drivers/spi_flash/src/main.c index c6477ec95a6..46edd9fa054 100644 --- a/samples/drivers/spi_flash/src/main.c +++ b/samples/drivers/spi_flash/src/main.c @@ -74,7 +74,7 @@ void main(void) printf("\nTest 2: Flash write\n"); - printf("Attempting to write %u bytes\n", len); + printf("Attempting to write %zu bytes\n", len); rc = flash_write(flash_dev, FLASH_TEST_REGION_OFFSET, expected, len); if (rc != 0) { printf("Flash write failed! %d\n", rc);