diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-20 14:24:34 (GMT) |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-06-01 08:23:13 (GMT) |
commit | 2a826061df67f205636b953f58f8bede2a3f009c (patch) | |
tree | 1391834d23c9ac28f78f02e903f74385ad3ad44a /drivers/mtd | |
parent | 01a4110d2b86b05918debf39c50867cbb9598491 (diff) | |
download | linux-2a826061df67f205636b953f58f8bede2a3f009c.tar.xz |
UBI: dump stack when switching to R/O mode
If we have debugging enabled and switching to R/O mode because of an error -
dump the stack to improve UBI error reporting and make the further diagnostics
easier to do.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index fd19f8d..dc64c76 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h @@ -667,6 +667,7 @@ static inline void ubi_ro_mode(struct ubi_device *ubi) if (!ubi->ro_mode) { ubi->ro_mode = 1; ubi_warn("switch to read-only mode"); + ubi_dbg_dump_stack(); } } |