projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a6f486
)
Add CONFIG_YAFFS_NO_TRACE to turn off all tracing
author
Charles Manning
<cdhmanning@gmail.com>
Thu, 9 Jul 2020 01:24:30 +0000
(13:24 +1200)
committer
Charles Manning
<cdhmanning@gmail.com>
Thu, 9 Jul 2020 01:24:30 +0000
(13:24 +1200)
This allows a foootprint reduction.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/ydirectenv.h
patch
|
blob
|
history
diff --git
a/direct/ydirectenv.h
b/direct/ydirectenv.h
index dcf58d03ed4102516a20641249d484d64cf5b649..332c10eaf5d721fcf05a9bd5a4b5c65876f7e7b2 100644
(file)
--- 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"