drivers/mtd/mtd_rwbuffer.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-23 13:22:51 +09:00 committed by Xiang Xiao
parent 5b25cf8e47
commit 7f32cfa720
1 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@
#include <sys/types.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
@ -174,8 +175,8 @@ static int mtd_erase(FAR struct mtd_dev_s *dev, off_t block, size_t nblocks)
size_t nsectors;
int ret;
finfo("block: %08lx nsectors: %lu\n",
(unsigned long)block, (unsigned int)nsectors);
finfo("block: %08zx nsectors: %zu\n",
(intmax_t)block, nsectors);
/* Convert to logical sectors and sector numbers */