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 63cd6d85182b1f1b899af05a306e50a809e3a431..7063fa649fb25b4e0329ae9ff43925d45bc0d86b 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 { \
 #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)
 
                printf("yaffs: " fmt "\n", ##__VA_ARGS__); \
 } while(0)