X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fydirectenv.h;h=d394c6e688a2e87d0c508969e34aec4dbaddcb61;hp=536ff22068c4a2d1be86b151133023fc55f8d94f;hb=79d0e028d5b777b2e4cf55d96b737cb024988abe;hpb=fb1a7ee223619260cfd9b6366fd78747cc572cd5 diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index 536ff22..d394c6e 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -60,21 +60,14 @@ void yaffs_qsort(void *aa, size_t n, size_t es, #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"