UBI: introduce flash dump helper
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 24 Jul 2009 12:31:33 +0000 (15:31 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 14 Aug 2009 17:02:20 +0000 (20:02 +0300)
commit867996b15c1f0a98d2c405bada907e97499ba8c2
tree3ca5bfb6e74ef5697bb89d29365f6c4df7ab4c03
parent758d8e46347aee199e7025b8c571bab75d2de63f
UBI: introduce flash dump helper

Useful for debugging problems, compiled in only if UBI debugging
is enabled. This patch also makes the UBI writing function dump
the flash if it fails to write.

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