This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6176e33 fs/littlefs: enable the low level log only on debug mode
6176e33 is described below
commit 6176e33ed2eea16f78bee5ee59cfc2c7af7d8af8
Author: chao.an <[email protected]>
AuthorDate: Fri Jun 5 14:41:53 2020 +0800
fs/littlefs: enable the low level log only on debug mode
Change-Id: I2fa95e2f1e861f76bb394a06344d90fac28ae195
Signed-off-by: chao.an <[email protected]>
---
fs/littlefs/Make.defs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fs/littlefs/Make.defs b/fs/littlefs/Make.defs
index fb21f06..a287713 100644
--- a/fs/littlefs/Make.defs
+++ b/fs/littlefs/Make.defs
@@ -31,6 +31,14 @@ CSRCS += lfs.c lfs_util.c
DEPPATH += --dep-path littlefs/littlefs
VPATH += :littlefs/littlefs
+ifneq ($(CONFIG_DEBUG_FS_INFO),y)
+ CFLAGS += -DLFS_NO_DEBUG
+endif
+
+ifneq ($(CONFIG_DEBUG_FS_WARN),y)
+ CFLAGS += -DLFS_NO_WARN
+endif
+
LITTLEFS_VERSION ?= 2.2.1
LITTLEFS_TARBALL = v$(LITTLEFS_VERSION).tar.gz