linux/drivers/mtd/ubi
Artem Bityutskiy ed45819f31 UBI: fix warnings when debugging is enabled
The 'ubi_io_read_vid_hdr()' and 'ubi_io_read_ec_hdr()' function
have the 'verbose' argument which controls whether they should
print a warning if the VID/EC header was not found or was corrupted.
Some callers require the headers to be OK, and pass 1. Some allow
a corrupted/not present header, and pass 0.

       if (UBI_IO_DEBUG)
               verbose = 1;

And UBI_IO_DEBUG is 1 if CONFIG_MTD_UBI_DEBUG_MSG_BLD is true. So in
this case the warning is printed all the time. This confuses people.

Thus, do not print the messages as warnings if UBI_IO_DEBUG is true,
but print them as debugging messages instead.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-12-03 13:24:48 +02:00
..
build.c UBI: always start the background thread 2008-07-25 11:35:15 +03:00
cdev.c UBI: remove BKL 2008-09-05 16:29:36 +03:00
debug.c UBI: remove pre-sqnum images support 2008-07-24 13:36:09 +03:00
debug.h UBI: fix and re-work debugging stuff 2008-07-24 13:34:45 +03:00
eba.c UBI: fix EBADMSG handling 2008-11-06 11:13:02 +02:00
gluebi.c UBI: fix checkpatch.pl errors and warnings 2008-07-24 13:36:09 +03:00
io.c UBI: fix warnings when debugging is enabled 2008-12-03 13:24:48 +02:00
kapi.c UBI: fix and re-work debugging stuff 2008-07-24 13:34:45 +03:00
Kconfig UBI: improve Kconfig documentation 2008-04-17 11:32:00 +03:00
Kconfig.debug UBI: Unsorted Block Images 2007-04-27 14:23:33 +03:00
Makefile UBI: Unsorted Block Images 2007-04-27 14:23:33 +03:00
misc.c UBI: avoid unnecessary division operations 2008-07-24 13:32:54 +03:00
scan.c UBI: fix EBADMSG handling 2008-11-06 11:13:02 +02:00
scan.h UBI: remove pre-sqnum images support 2008-07-24 13:36:09 +03:00
ubi-media.h UBI: remove pre-sqnum images support 2008-07-24 13:36:09 +03:00
ubi.h UBI: fix kernel-doc errors and warnings 2008-07-24 13:36:09 +03:00
upd.c UBI: fix kernel-doc errors and warnings 2008-07-24 13:36:09 +03:00
vmt.c UBI: fix gcc warning 2008-07-24 13:36:10 +03:00
vtbl.c UBI: print reserved_peb when it is too large 2008-10-09 16:19:04 +03:00
wl.c UBI: Don't exit from ubi_thread until kthread_should_stop() is true 2008-11-06 11:13:04 +02:00