You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/25 06:32:04 UTC
[incubator-nuttx] 21/28: fs/spiffs/src/spiffs_gc.c: Fix syslog
formats
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit be013cc338cbbc6e7142b93220c642363ad857d7
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 08:13:37 2020 +0900
fs/spiffs/src/spiffs_gc.c: Fix syslog formats
---
fs/spiffs/src/spiffs_gc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/spiffs/src/spiffs_gc.c b/fs/spiffs/src/spiffs_gc.c
index 1413537..45358ea 100644
--- a/fs/spiffs/src/spiffs_gc.c
+++ b/fs/spiffs/src/spiffs_gc.c
@@ -652,7 +652,7 @@ static int spiffs_gc_clean(FAR struct spiffs_s *fs, int16_t blkndx)
spiffs_gcinfo(
"Wrote page=%04x to objhdr entry=%04x\n",
new_data_pgndx,
- SPIFFS_OBJNDX_ENTRY(fs, phdr.spndx));
+ (int)SPIFFS_OBJNDX_ENTRY(fs, phdr.spndx));
}
else
{
@@ -666,7 +666,7 @@ static int spiffs_gc_clean(FAR struct spiffs_s *fs, int16_t blkndx)
spiffs_gcinfo(
"Wrote page=%04x to objndx entry=%04x\n",
new_data_pgndx,
- SPIFFS_OBJNDX_ENTRY(fs, phdr.spndx));
+ (int)SPIFFS_OBJNDX_ENTRY(fs, phdr.spndx));
}
}
}