OSDN Git Service

UBI: always dump the stack on error
authorArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Tue, 24 Apr 2012 03:59:49 +0000 (06:59 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 20 May 2012 17:25:58 +0000 (20:25 +0300)
commit25886a368d58edd9bb0f63d4417d2f73592b9dba
tree1d520825e52db0ca220738ca0704f5318b3814c7
parent56b04e3e8b5cbf71c23a739f34f9a9437afa41fb
UBI: always dump the stack on error

UBI (and UBIFS) are a bit over-engineered WRT debugging. The idea was to
link as few as possible when debugging is disabled, but the downside is
that most people produce bug reports which are difficult to understand.

This patch weeds out the 'ubi_dbg_dump_stack()' function and turns it
into 'dump_stack()' - it is always useful to have stack dump in case of
an error.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
drivers/mtd/ubi/debug.h
drivers/mtd/ubi/io.c
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c