diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-11-12 10:14:10 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-12-03 13:24:48 +0200 |
commit | ed45819f315b5a8844b5bfce881a18e9f3a055e7 (patch) | |
tree | dc843958848ed8126ec17e35c5d784f5ef4b6702 /drivers/mtd/rfd_ftl.c | |
parent | f6f7b52e2f6149d2ee365717afff315b05720162 (diff) |
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>
Diffstat (limited to 'drivers/mtd/rfd_ftl.c')
0 files changed, 0 insertions, 0 deletions