From dbec1cf6946708e486494cc6ffd92c5815448dfb Mon Sep 17 00:00:00 2001 From: Alexander Vasiljev Date: Wed, 3 Feb 2021 12:46:40 +0300 Subject: [PATCH] drivers:mtd:smart.c: entryname is declared and should be under ifdef --- drivers/mtd/smart.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/smart.c b/drivers/mtd/smart.c index 3990af35eb..1f42daf192 100644 --- a/drivers/mtd/smart.c +++ b/drivers/mtd/smart.c @@ -5945,9 +5945,9 @@ static int smart_fsck_directory(FAR struct smart_struct_s *dev, (const char *) (cur + sizeof(struct smart_entry_header_s)), dev->namesize); entryname[dev->namesize] = '\0'; -#endif finfo("Check entry (name=%s flags=%02x logsector=%02x)\n", entryname, entry->flags, entry->firstsector); +#endif if (entry->flags & SMARTFS_DIRENT_ACTIVE) { @@ -5969,8 +5969,10 @@ static int smart_fsck_directory(FAR struct smart_struct_s *dev, if (ret != OK) { +#ifdef CONFIG_DEBUG_FS_INFO finfo("Remove entry (name=%s flags=%02x)\n", entryname, entry->flags); +#endif if ((cur + (2 * entrysize)) <= bottom) {