projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01a4110
)
UBI: dump stack when switching to R/O mode
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 20 May 2011 14:24:34 +0000
(17:24 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 1 Jun 2011 08:23:13 +0000
(11:23 +0300)
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>
drivers/mtd/ubi/ubi.h
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/ubi.h
b/drivers/mtd/ubi/ubi.h
index fd19f8d3bce86523d9c59228ad20b1fa8dfefb99..dc64c767fd2175e2503510bb1cea51d3ffb63f47 100644
(file)
--- 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();
}
}