From 974da1244884eb983309666492789e5f21a05310 Mon Sep 17 00:00:00 2001 From: Saurav Pal Date: Tue, 22 Oct 2024 17:04:38 +0000 Subject: [PATCH] fs/mnemofs: Fix extra log unused value error. Fix the unused value error for when extra logs are OFF. Signed-off-by: Saurav Pal --- fs/mnemofs/mnemofs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/mnemofs/mnemofs.h b/fs/mnemofs/mnemofs.h index 8839a203d3..0ab27bb800 100644 --- a/fs/mnemofs/mnemofs.h +++ b/fs/mnemofs/mnemofs.h @@ -98,11 +98,11 @@ #define MFS_JRNL_LIM(sb) (MFS_JRNL(sb).n_blks / 2) #define MFS_TRAVERSE_INITSZ 8 -#define MFS_LOG finfo +#define MFS_LOG(fmt, ...) finfo(fmt, ##__VA_ARGS__) #ifdef CONFIG_MNEMOFS_EXTRA_DEBUG -#define MFS_EXTRA_LOG finfo +#define MFS_EXTRA_LOG(fmt, ...) MFS_LOG(fmt, ##__VA_ARGS__) #else -#define MFS_EXTRA_LOG +#define MFS_EXTRA_LOG(fmt, ...) { } #endif #define MFS_STRLITCMP(a, lit) strncmp(a, lit, strlen(lit))