Add stuff for object shadowing and fix a constness
[yaffs2.git] / yportenv.h
index 77c5b058391f9c745e5c811e44e9cc563c863b8c..b5e043423e14277d53ae0d662c1fdf559db91c1c 100644 (file)
@@ -15,7 +15,7 @@
  *
  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
  *
- * $Id: yportenv.h,v 1.3 2004-11-16 02:36:15 charles Exp $
+ * $Id: yportenv.h,v 1.6 2005-07-31 00:26:57 charles Exp $
  *
  */
  
 
 
 // Linux kernel
-#include "linux/kernel.h"
-#include "linux/version.h"
-#include "linux/mm.h"
-#include "linux/string.h"
-#include "linux/slab.h"
+#include <linux/config.h>
+#include <linux/kernel.h>
+#include <linux/version.h>
+#include <linux/mm.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #define YCHAR char
 #define YUCHAR unsigned char
@@ -71,7 +72,7 @@
 #define yaffs_strcmp(a,b) strcmp(a,b)
 
 #define TENDSTR "\n"
-#define TSTR(x) KERN_DEBUG x
+#define TSTR(x) KERN_WARNING x
 #define TOUT(p) printk p
 
 
@@ -147,6 +148,8 @@ extern unsigned yaffs_traceMask;
 #define YAFFS_TRACE_BUFFERS            0x00000400
 #define YAFFS_TRACE_NANDACCESS         0x00000800
 #define YAFFS_TRACE_GC_DETAIL          0x00001000
+#define YAFFS_TRACE_SCAN_DEBUG         0x00002000
+#define YAFFS_TRACE_MTD                        0x00004000
 #define YAFFS_TRACE_ALWAYS             0x40000000
 #define YAFFS_TRACE_BUG                        0x80000000