mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
UBIFS: print less
UBIFS currently prints a lot of information when it mounts a volume, which bothers some people. Make it less chatty - print only important information by default. Get rid of 'dbg_msg()' macro completely. Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
parent
6b38d03f48
commit
3668b70fcf
8 changed files with 59 additions and 69 deletions
|
@ -1662,19 +1662,19 @@ static int dbg_check_ltab_lnum(struct ubifs_info *c, int lnum)
|
|||
continue;
|
||||
}
|
||||
if (!dbg_is_all_ff(p, len)) {
|
||||
dbg_msg("invalid empty space in LEB %d at %d",
|
||||
lnum, c->leb_size - len);
|
||||
ubifs_err("invalid empty space in LEB %d at %d",
|
||||
lnum, c->leb_size - len);
|
||||
err = -EINVAL;
|
||||
}
|
||||
i = lnum - c->lpt_first;
|
||||
if (len != c->ltab[i].free) {
|
||||
dbg_msg("invalid free space in LEB %d (free %d, expected %d)",
|
||||
lnum, len, c->ltab[i].free);
|
||||
ubifs_err("invalid free space in LEB %d (free %d, expected %d)",
|
||||
lnum, len, c->ltab[i].free);
|
||||
err = -EINVAL;
|
||||
}
|
||||
if (dirty != c->ltab[i].dirty) {
|
||||
dbg_msg("invalid dirty space in LEB %d (dirty %d, expected %d)",
|
||||
lnum, dirty, c->ltab[i].dirty);
|
||||
ubifs_err("invalid dirty space in LEB %d (dirty %d, expected %d)",
|
||||
lnum, dirty, c->ltab[i].dirty);
|
||||
err = -EINVAL;
|
||||
}
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue