Skip to content

Commit 4f0c714

Browse files
katsustercfriedt
authored andcommitted
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 <[email protected]>
1 parent 85bb817 commit 4f0c714

File tree

1 file changed

+1
-1
lines changed
  • samples/drivers/spi_flash/src

1 file changed

+1
-1
lines changed

samples/drivers/spi_flash/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void main(void)
7474

7575
printf("\nTest 2: Flash write\n");
7676

77-
printf("Attempting to write %u bytes\n", len);
77+
printf("Attempting to write %zu bytes\n", len);
7878
rc = flash_write(flash_dev, FLASH_TEST_REGION_OFFSET, expected, len);
7979
if (rc != 0) {
8080
printf("Flash write failed! %d\n", rc);

0 commit comments

Comments
 (0)