Skip to content

Commit

Permalink
UBIFS: always print full error reports
Browse files Browse the repository at this point in the history
Even when we are emulating power cuts, otherwise it is difficult to investigate
failures during emulated power cuts testing.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
dedekind committed Aug 22, 2012
1 parent c45640d commit db0f896
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,6 @@ void ubifs_dump_node(const struct ubifs_info *c, const void *node)
const struct ubifs_ch *ch = node;
char key_buf[DBG_KEY_BUF_LEN];

if (dbg_is_tst_rcvry(c))
return;

/* If the magic is incorrect, just hexdump the first bytes */
if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) {
printk(KERN_ERR "Not a node, first %zu bytes:", UBIFS_CH_SZ);
Expand Down Expand Up @@ -882,9 +879,6 @@ void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
struct ubifs_scan_node *snod;
void *buf;

if (dbg_is_tst_rcvry(c))
return;

printk(KERN_ERR "(pid %d) start dumping LEB %d\n",
current->pid, lnum);

Expand Down
2 changes: 0 additions & 2 deletions fs/ubifs/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs,
int len;

ubifs_err("corruption at LEB %d:%d", lnum, offs);
if (dbg_is_tst_rcvry(c))
return;
len = c->leb_size - offs;
if (len > 8192)
len = 8192;
Expand Down

0 comments on commit db0f896

Please sign in to comment.