UBIFS: dump the stack on errors in failure mode too
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 26 Apr 2011 07:21:54 +0000 (10:21 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 13 May 2011 16:23:56 +0000 (19:23 +0300)
commitec0681426526b23d3e12cf247d64676806c30b7f
tree181b2a911800e86e48c40c2846291ac3e7a9df80
parent6d5904e062d5cb28b705d49a35682e0871b3f382
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>
fs/ubifs/debug.h