X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fydirectenv.h;h=332c10eaf5d721fcf05a9bd5a4b5c65876f7e7b2;hb=b21bef3bd5ef583feed45f0500a1058cbaa47136;hp=dcf58d03ed4102516a20641249d484d64cf5b649;hpb=1f3d64d1d804fef6715126dead54bf30b176c67e;p=yaffs2.git 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"