yaffs direct: Fix trace ALWAYS issue
authorCharles Manning <cdhmanning@gmail.com>
Fri, 7 Jan 2011 01:26:01 +0000 (14:26 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Fri, 7 Jan 2011 01:26:01 +0000 (14:26 +1300)
Trace ALWAYS was done wrong in the macro. Just make it another bitmap.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/ydirectenv.h

index 63cd6d8..7063fa6 100644 (file)
@@ -61,7 +61,7 @@ void yaffs_qsort(void *aa, size_t n, size_t es,
 #define cond_resched()  do {} while(0)
 
 #define yaffs_trace(msk, fmt, ...) do { \
-       if(yaffs_trace_mask & ((msk) | YAFFS_TRACE_ALWAYS)) \
+       if(yaffs_trace_mask & (msk)) \
                printf("yaffs: " fmt "\n", ##__VA_ARGS__); \
 } while(0)