dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Artem Bityutskiy 2011-05-20 17:24:34 +03:00
parent 01a4110d2b
commit 2a826061df
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
}