diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 12:04:54 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 12:04:54 -0400 |
commit | 7c46d0ae29ba880963db283706950de7aa86c0a0 (patch) | |
tree | 1ba1ba22f2281dda27116443db50ebbcfc84cc09 /fs/ubifs/lpt.c | |
parent | 1bdcc63112a0fe10030abee6ad71aaecd091e68e (diff) |
UBIFS: get rid of dbg_dump_stack
In case of errors we almost always need the stack dump - it makes no sense
to compile it out. Remove the 'dbg_dump_stack()' function completely.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/lpt.c')
-rw-r--r-- | fs/ubifs/lpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c index 66d59d0a1402..4b62998697df 100644 --- a/fs/ubifs/lpt.c +++ b/fs/ubifs/lpt.c | |||
@@ -926,7 +926,7 @@ static int check_lpt_crc(void *buf, int len) | |||
926 | if (crc != calc_crc) { | 926 | if (crc != calc_crc) { |
927 | ubifs_err("invalid crc in LPT node: crc %hx calc %hx", crc, | 927 | ubifs_err("invalid crc in LPT node: crc %hx calc %hx", crc, |
928 | calc_crc); | 928 | calc_crc); |
929 | dbg_dump_stack(); | 929 | dump_stack(); |
930 | return -EINVAL; | 930 | return -EINVAL; |
931 | } | 931 | } |
932 | return 0; | 932 | return 0; |
@@ -949,7 +949,7 @@ static int check_lpt_type(uint8_t **addr, int *pos, int type) | |||
949 | if (node_type != type) { | 949 | if (node_type != type) { |
950 | ubifs_err("invalid type (%d) in LPT node type %d", node_type, | 950 | ubifs_err("invalid type (%d) in LPT node type %d", node_type, |
951 | type); | 951 | type); |
952 | dbg_dump_stack(); | 952 | dump_stack(); |
953 | return -EINVAL; | 953 | return -EINVAL; |
954 | } | 954 | } |
955 | return 0; | 955 | return 0; |
@@ -1247,7 +1247,7 @@ int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) | |||
1247 | 1247 | ||
1248 | out: | 1248 | out: |
1249 | ubifs_err("error %d reading nnode at %d:%d", err, lnum, offs); | 1249 | ubifs_err("error %d reading nnode at %d:%d", err, lnum, offs); |
1250 | dbg_dump_stack(); | 1250 | dump_stack(); |
1251 | kfree(nnode); | 1251 | kfree(nnode); |
1252 | return err; | 1252 | return err; |
1253 | } | 1253 | } |
@@ -1313,7 +1313,7 @@ static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) | |||
1313 | out: | 1313 | out: |
1314 | ubifs_err("error %d reading pnode at %d:%d", err, lnum, offs); | 1314 | ubifs_err("error %d reading pnode at %d:%d", err, lnum, offs); |
1315 | dbg_dump_pnode(c, pnode, parent, iip); | 1315 | dbg_dump_pnode(c, pnode, parent, iip); |
1316 | dbg_dump_stack(); | 1316 | dump_stack(); |
1317 | dbg_msg("calc num: %d", calc_pnode_num_from_parent(c, parent, iip)); | 1317 | dbg_msg("calc num: %d", calc_pnode_num_from_parent(c, parent, iip)); |
1318 | kfree(pnode); | 1318 | kfree(pnode); |
1319 | return err; | 1319 | return err; |