Patchwork [1/3] UBIFS: amend recovery debugging message

login
register
mail settings
Submitter Artem Bityutskiy
Date Jan. 18, 2012, 2:54 p.m.
Message ID <1326898454-1957-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/136633/
State Accepted
Commit 78437368c8d9c8dc13461c689d13369f64e4522c
Headers show

Comments

Artem Bityutskiy - Jan. 18, 2012, 2:54 p.m.
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

Print LEB and offset as well.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
 fs/ubifs/recovery.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index ee4f43f..2a935b3 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -679,7 +679,8 @@  struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
 			   ret == SCANNED_GARBAGE     ||
 			   ret == SCANNED_A_BAD_PAD_NODE ||
 			   ret == SCANNED_A_CORRUPT_NODE) {
-			dbg_rcvry("found corruption - %d", ret);
+			dbg_rcvry("found corruption (%d) at %d:%d",
+				  ret, lnum, offs);
 			break;
 		} else {
 			dbg_err("unexpected return value %d", ret);