This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 974da12448 fs/mnemofs: Fix extra log unused value error. Fix the
unused value error for when extra logs are OFF.
974da12448 is described below
commit 974da1244884eb983309666492789e5f21a05310
Author: Saurav Pal <[email protected]>
AuthorDate: Tue Oct 22 17:04:38 2024 +0000
fs/mnemofs: Fix extra log unused value error.
Fix the unused value error for when extra logs are OFF.
Signed-off-by: Saurav Pal <[email protected]>
---
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))