From 9ec95d6cf1de41a5a66fc96ea8937d468ddb2771 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 19 Oct 2018 15:21:28 +0700 Subject: [PATCH] more clean up --- libraries/FileSystem/src/littlefs/lfs_util.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/FileSystem/src/littlefs/lfs_util.h b/libraries/FileSystem/src/littlefs/lfs_util.h index 5c141b29..902b9908 100644 --- a/libraries/FileSystem/src/littlefs/lfs_util.h +++ b/libraries/FileSystem/src/littlefs/lfs_util.h @@ -32,8 +32,16 @@ #ifndef LFS_NO_ASSERT #include #endif + +#if !CFG_DEBUG +#define LFS_NO_DEBUG +#define LFS_NO_WARN +#define LFS_NO_ERROR +#endif + #if !defined(LFS_NO_DEBUG) || !defined(LFS_NO_WARN) || !defined(LFS_NO_ERROR) #include +int cprintf (const char * format, ...); #endif #ifdef __cplusplus @@ -45,7 +53,6 @@ extern "C" // Macros, may be replaced by system specific wrappers. Arguments to these // macros must not have side-effects as the macros can be removed for a smaller // code footprint -int cprintf (const char * format, ...); // Logging functions #ifndef LFS_NO_DEBUG