Skip to content

Commit

Permalink
UBI: add dump_stack in checking code
Browse files Browse the repository at this point in the history
I am experiencing an error in 'paranoid_check_volume()'. Add
dump_stack() there to make it easier to identify the reasons
of the error.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed May 18, 2009
1 parent ffb6b7e commit cfcf0ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/ubi/vmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ static int paranoid_check_volume(struct ubi_device *ubi, int vol_id)
if (vol)
ubi_dbg_dump_vol_info(vol);
ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id);
dump_stack();
spin_unlock(&ubi->volumes_lock);
return -EINVAL;
}
Expand Down

0 comments on commit cfcf0ec

Please sign in to comment.