Skip to content

Commit

Permalink
fs/mnemofs: Fix extra log unused value error.
Browse files Browse the repository at this point in the history
Fix the unused value error for when extra logs are OFF.

Signed-off-by: Saurav Pal <[email protected]>
  • Loading branch information
resyfer authored and acassis committed Oct 22, 2024
1 parent 5b5f148 commit 974da12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/mnemofs/mnemofs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 974da12

Please sign in to comment.