From f2aa39bdf4996729001cb2a6e98d34eda832b9be Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Thu, 29 Apr 2010 13:39:16 +1200 Subject: [PATCH] yaffs: Add dump_stack() to YBUG to give more info. This adds more info for debugging. Signed-off-by: Charles Manning --- yportenv.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yportenv.h b/yportenv.h index d962fca..13cc1eb 100644 --- a/yportenv.h +++ b/yportenv.h @@ -71,8 +71,8 @@ #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 Y_DUMP_STACK() dump_stack() #define YAFFS_ROOT_MODE 0755 #define YAFFS_LOSTNFOUND_MODE 0700 @@ -153,12 +153,16 @@ #endif +#ifndef Y_DUMP_STACK +#define Y_DUMP_STACK() do { } while (0) +#endif #ifndef YBUG #define YBUG() do {\ T(YAFFS_TRACE_BUG,\ (TSTR("==>> yaffs bug: " __FILE__ " %d" TENDSTR),\ __LINE__));\ + Y_DUMP_STACK();\ } while (0) #endif -- 2.30.2