projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Add dump_stack() to YBUG to give more info.
[yaffs2.git]
/
yportenv.h
diff --git
a/yportenv.h
b/yportenv.h
index 7a8397f0f0683a71f5678265b05d6807971ea20c..13cc1eb621783ebbfd7c860509593194dbf97d25 100644
(file)
--- a/
yportenv.h
+++ b/
yportenv.h
@@
-71,8
+71,8
@@
#define YFREE_ALT(x) vfree(x)
#define YMALLOC_DMA(x) YMALLOC(x)
#define YFREE_ALT(x) vfree(x)
#define YMALLOC_DMA(x) YMALLOC(x)
-/* KR - added for use in scan so processes aren't blocked indefinitely. */
#define YYIELD() schedule()
#define YYIELD() schedule()
+#define Y_DUMP_STACK() dump_stack()
#define YAFFS_ROOT_MODE 0755
#define YAFFS_LOSTNFOUND_MODE 0700
#define YAFFS_ROOT_MODE 0755
#define YAFFS_LOSTNFOUND_MODE 0700
@@
-153,9
+153,17
@@
#endif
#endif
+#ifndef Y_DUMP_STACK
+#define Y_DUMP_STACK() do { } while (0)
+#endif
#ifndef YBUG
#ifndef YBUG
-#define YBUG() do {T(YAFFS_TRACE_BUG, (TSTR("==>> yaffs bug: " __FILE__ " %d" TENDSTR), __LINE__)); } while (0)
+#define YBUG() do {\
+ T(YAFFS_TRACE_BUG,\
+ (TSTR("==>> yaffs bug: " __FILE__ " %d" TENDSTR),\
+ __LINE__));\
+ Y_DUMP_STACK();\
+} while (0)
#endif
#endif
#endif
#endif