samples: drivers: spi_flash: fix printf warning on 64bit environment

This patch fixes printf format specifier "%u" -> "%zu" for printing
an argument of size_t on 64bit environment.

Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
This commit is contained in:
Katsuhiro Suzuki 2021-06-10 21:39:29 +09:00 committed by Christopher Friedt
parent 85bb8178cb
commit 4f0c7141b3
1 changed files with 1 additions and 1 deletions

View File

@ -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);