UBI: always dump the stack on error
UBI (and UBIFS) are a bit over-engineered WRT debugging. The idea was to link as few as possible when debugging is disabled, but the downside is that most people produce bug reports which are difficult to understand. This patch weeds out the 'ubi_dbg_dump_stack()' function and turns it into 'dump_stack()' - it is always useful to have stack dump in case of an error. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
This commit is contained in:

committed by
Artem Bityutskiy

parent
56b04e3e8b
commit
25886a368d
@@ -667,7 +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();
|
||||
dump_stack();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user