Mercurial > yaffs-ecoscentric-gpl
diff yportenv.h @ 179:2c3cea26b1ca
Rolling in Ians and other changes
| author | charles <charles> |
|---|---|
| date | Wed, 18 Jul 2007 19:40:37 +0000 |
| parents | 570d9d4cac30 |
| children | 0dfc0420d47f |
line wrap: on
line diff
--- a/yportenv.h +++ b/yportenv.h @@ -79,6 +79,14 @@ #define TSTR(x) KERN_WARNING x #define TOUT(p) printk p +#define yaffs_trace(mask, fmt, args...) \ + do { if ((mask) & (yaffs_traceMask|YAFFS_TRACE_ERROR)) \ + printk(KERN_WARNING "yaffs: " fmt, ## args); \ + } while (0) + +#define compile_time_assertion(assertion) \ + ({ int x = __builtin_choose_expr(assertion, 0, (void)0); (void) x; }) + #elif defined CONFIG_YAFFS_DIRECT /* Direct interface */ @@ -133,7 +141,9 @@ #endif -extern unsigned yaffs_traceMask; +/* see yaffs_fs.c */ +extern unsigned int yaffs_traceMask; +extern unsigned int yaffs_wr_attempts; /* * Tracing flags.
