]> git.karo-electronics.de Git - linux-beck.git/commit
UBI: always dump VID and EC headers in case of errors
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 25 Apr 2012 06:02:44 +0000 (09:02 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 20 May 2012 17:25:58 +0000 (20:25 +0300)
commita904e3f1deb21b986b7789a830fa8f132ff3d406
tree6850b21416600cab1c28a9b531035e70a1132aca
parentef7088e7f84ba550b276bc4a74f2732ee5618fb8
UBI: always dump VID and EC headers 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 VID and EC headers' contents in case of errors when it
is helpful.

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