From da59bf8d6a7fe444626da887e4096f411c66d4ca Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Thu, 9 Jul 2020 13:24:30 +1200 Subject: [PATCH] Add CONFIG_YAFFS_NO_TRACE to turn off all tracing This allows a foootprint reduction. Signed-off-by: Charles Manning --- direct/ydirectenv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index dcf58d0..332c10e 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -73,11 +73,15 @@ size_t strnlen(const char *s, size_t maxlen); #define cond_resched() do {} while (0) +#ifdef CONFIG_YAFFS_NO_TRACE #define yaffs_trace(msk, fmt, ...) do { \ if (yaffs_trace_mask & (msk)) \ printf("yaffs: " fmt "\n", ##__VA_ARGS__); \ } while (0) +#else +#define yaffs_trace(...) do { } while (0) +#endif #define YAFFS_LOSTNFOUND_NAME "lost+found" #define YAFFS_LOSTNFOUND_PREFIX "obj" -- 2.30.2