aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-26 03:21:54 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 12:23:56 -0400
commitec0681426526b23d3e12cf247d64676806c30b7f (patch)
tree181b2a911800e86e48c40c2846291ac3e7a9df80 /fs/ubifs
parent6d5904e062d5cb28b705d49a35682e0871b3f382 (diff)
UBIFS: dump the stack on errors in failure mode too
When UBIFS is in the failure mode (used for power cut emulation testing) we for some reasons do not dump the stack in many places, e.g., in assertions. Probably at early days we had too many of them and disabled this to make the development easier, but then never enabled. Nowadays I sometimes observe assertion failures during power cut testing, but the useful stackdump is not printed, which is bad. This patch makes UBIFS always print the stackdump when debugging is enabled. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/debug.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index 8934c12f108e..f3e235fcd8df 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -107,10 +107,7 @@ struct ubifs_debug_info {
107 } \ 107 } \
108} while (0) 108} while (0)
109 109
110#define dbg_dump_stack() do { \ 110#define dbg_dump_stack() dump_stack()
111 if (!dbg_failure_mode) \
112 dump_stack(); \
113} while (0)
114 111
115/* Generic debugging messages */ 112/* Generic debugging messages */
116#define dbg_msg(fmt, ...) do { \ 113#define dbg_msg(fmt, ...) do { \