From ac6b08c8e9d2ee9497924ded5024ee6ed8ec4976 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sat, 21 Nov 2020 11:36:57 +0900 Subject: [PATCH] fs/spiffs/src/spiffs_mtd.c: Fix a syslog format --- fs/spiffs/src/spiffs_mtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/spiffs/src/spiffs_mtd.c b/fs/spiffs/src/spiffs_mtd.c index 1a3feb74bc..ac2846ea72 100644 --- a/fs/spiffs/src/spiffs_mtd.c +++ b/fs/spiffs/src/spiffs_mtd.c @@ -471,7 +471,7 @@ ssize_t spiffs_mtd_erase(FAR struct spiffs_s *fs, off_t offset, size_t len) nerased = MTD_ERASE(fs->mtd, eblkstart, eblkend - eblkstart); if (nerased < 0) { - ferr("ERROR: MTD_ERASE() failed: %d\n"); + ferr("ERROR: MTD_ERASE() failed: %zd\n", nerased); return nerased; }