#define YAFFS_PATH_DIVIDERS "/"
-#ifdef NO_Y_INLINE
-#define Y_INLINE
+#ifdef NO_inline
+#define inline
#else
-#define Y_INLINE __inline__
+#define inline __inline__
#endif
#define kmalloc(x,flags) yaffs_malloc(x)
#define cond_resched() do {} while(0)
-
-
-//#define YINFO(s) YPRINTF(( __FILE__ " %d %s\n",__LINE__,s))
-//#define YALERT(s) YINFO(s)
-
-
-#define TENDSTR "\n"
-#define TSTR(x) x
-#define TCONT(x) x
-#define TOUT(p) printf p
+#define yaffs_trace(msk, fmt, ...) do { \
+ if(yaffs_trace_mask & ((msk) | YAFFS_TRACE_ALWAYS)) \
+ printf("yaffs: " fmt "\n", ##__VA_ARGS__); \
+} while(0)
#define YAFFS_LOSTNFOUND_NAME "lost+found"
#define YAFFS_LOSTNFOUND_PREFIX "obj"
-//#define YPRINTF(x) printf x
#include "yaffscfg.h"