UBI: always dump flash contents in case of errors
authorArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Tue, 24 Apr 2012 04:10:33 +0000 (07:10 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 20 May 2012 17:25:58 +0000 (20:25 +0300)
commitef7088e7f84ba550b276bc4a74f2732ee5618fb8
treed78e5c018a29241b05e14b946b9f29e008fa6042
parent25886a368d58edd9bb0f63d4417d2f73592b9dba
UBI: always dump flash contents in case of errors

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.

Always dump the flash contents in case of errors, not only when debugging is
enabled.

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