Skip to content

Commit 2a82606

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
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>
1 parent 01a4110 commit 2a82606

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/mtd/ubi/ubi.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ static inline void ubi_ro_mode(struct ubi_device *ubi)
667667
if (!ubi->ro_mode) {
668668
ubi->ro_mode = 1;
669669
ubi_warn("switch to read-only mode");
670+
ubi_dbg_dump_stack();
670671
}
671672
}
672673

0 commit comments

Comments
 (0)