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)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 21 Jun 2012 11:46:16 +0000 (14:46 +0300)
commit5a0586ceb18df0d7245b1d96eb2aedb8cbe1c59a
treee7f60ef81a193dbe4ea04c7e35f523f16398adf3
parentb0802120f152a738ac44edfd7b98fc01650ad4d6
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