fs/mnemofs: Fix extra log unused value error.

Fix the unused value error for when extra logs are OFF.

Signed-off-by: Saurav Pal <resyfer.dev@gmail.com>
This commit is contained in:
Saurav Pal 2024-10-22 17:04:38 +00:00 committed by Alan C. Assis
parent 5b5f148178
commit 974da12448
1 changed files with 3 additions and 3 deletions

View File

@ -98,11 +98,11 @@
#define MFS_JRNL_LIM(sb) (MFS_JRNL(sb).n_blks / 2) #define MFS_JRNL_LIM(sb) (MFS_JRNL(sb).n_blks / 2)
#define MFS_TRAVERSE_INITSZ 8 #define MFS_TRAVERSE_INITSZ 8
#define MFS_LOG finfo #define MFS_LOG(fmt, ...) finfo(fmt, ##__VA_ARGS__)
#ifdef CONFIG_MNEMOFS_EXTRA_DEBUG #ifdef CONFIG_MNEMOFS_EXTRA_DEBUG
#define MFS_EXTRA_LOG finfo #define MFS_EXTRA_LOG(fmt, ...) MFS_LOG(fmt, ##__VA_ARGS__)
#else #else
#define MFS_EXTRA_LOG #define MFS_EXTRA_LOG(fmt, ...) { }
#endif #endif
#define MFS_STRLITCMP(a, lit) strncmp(a, lit, strlen(lit)) #define MFS_STRLITCMP(a, lit) strncmp(a, lit, strlen(lit))