X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yportenv_single.h;h=76a7914940fcfa6f437b535a2771f6605a896630;hp=aa7c22b59885a49dfd93014554605817ec48374e;hb=b4d5215f18486403d16f2e776000e43eba052f40;hpb=6648cbf52d6695755941ff8607fd7a0cda542e05 diff --git a/yportenv_single.h b/yportenv_single.h index aa7c22b..76a7914 100644 --- a/yportenv_single.h +++ b/yportenv_single.h @@ -49,11 +49,17 @@ #define compile_time_assertion(assertion) \ ({ int x = __builtin_choose_expr(assertion, 0, (void)0); (void) x; }) +#define yaffs_printf(msk, fmt, ...) \ + printk(KERN_DEBUG "yaffs: " fmt "\n", ##__VA_ARGS__) +#ifdef CONFIG_YAFFS_DEBUG #define yaffs_trace(msk, fmt, ...) do { \ if (yaffs_trace_mask & (msk)) \ printk(KERN_DEBUG "yaffs: " fmt "\n", ##__VA_ARGS__); \ } while (0) - +#else +#define yaffs_trace(msk, fmt, ...) do { \ +} while (0) +#endif #endif