X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yportenv_single.h;h=76a7914940fcfa6f437b535a2771f6605a896630;hb=1dd2d1919e78641592098968e221b661a7451a58;hp=aa7c22b59885a49dfd93014554605817ec48374e;hpb=6648cbf52d6695755941ff8607fd7a0cda542e05;p=yaffs2.git 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