diff options
author | Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> | 2012-04-24 06:59:49 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 20:25:58 +0300 |
commit | 25886a368d58edd9bb0f63d4417d2f73592b9dba (patch) | |
tree | 1d520825e52db0ca220738ca0704f5318b3814c7 /drivers/mtd/ubi/scan.c | |
parent | 56b04e3e8b5cbf71c23a739f34f9a9437afa41fb (diff) | |
download | op-kernel-dev-25886a368d58edd9bb0f63d4417d2f73592b9dba.zip op-kernel-dev-25886a368d58edd9bb0f63d4417d2f73592b9dba.tar.gz |
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>
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index 12c43b4..75c23a9 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c @@ -1598,7 +1598,7 @@ bad_vid_hdr: ubi_dbg_dump_vid_hdr(vidh); out: - ubi_dbg_dump_stack(); + dump_stack(); return -EINVAL; } |