diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-13 12:26:54 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-16 10:31:39 +0300 |
commit | c839e29768059c56ef233586e66a2a66edbe93a3 (patch) | |
tree | f4db1482edce7ccfd37d0e701b7359427080722d /fs/ubifs/replay.c | |
parent | 12346037a71809197b22e223c3a719190a26172d (diff) | |
download | op-kernel-dev-c839e29768059c56ef233586e66a2a66edbe93a3.zip op-kernel-dev-c839e29768059c56ef233586e66a2a66edbe93a3.tar.gz |
UBIFS: improve debugging messages
Print a bit more information is some recovery and replay paths.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/replay.c')
-rw-r--r-- | fs/ubifs/replay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index c29c468..0052663 100644 --- a/fs/ubifs/replay.c +++ b/fs/ubifs/replay.c @@ -509,7 +509,7 @@ static int replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, struct ubifs_scan_node *snod; struct ubifs_bud *bud; - dbg_mnt("replay bud LEB %d, head %d", lnum, jhead); + dbg_mnt("replay bud LEB %d, head %d, offs %d", lnum, jhead, offs); if (c->need_recovery) sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, jhead != GCHD); else @@ -636,6 +636,7 @@ static int replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, *dirty = sleb->endpt - offs - used; *free = c->leb_size - sleb->endpt; + dbg_mnt("bud LEB %d replied: dirty %d, free %d", lnum, *dirty, *free); out: ubifs_scan_destroy(sleb); |