]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: do not link debug messages when debugging is disabled
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 19 Aug 2011 16:02:27 +0000 (19:02 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>
Fri, 19 Aug 2011 16:02:27 +0000 (19:02 +0300)
commita7fb948d78b3ad0d2a0b36e5787637253de70498
treedb0dcacddc6e54e6d7130d204051e1f0ca3f4b17
parent016f1c54408b1e92e2e8087bfc05ca0a9c258513
UBI: do not link debug messages when debugging is disabled

Michal Marek spotted the same issue in UBIFS and this patch fixes UBI,
see "UBIFS: not build debug messages with CONFIG_UBIFS_FS_DEBUG disabled"

When UBI debugging is disabled, we have debugging messages defined as:

if (0)
pr_debug()

But pr_debug macro defines data structures with debugging data and makes
the linux binary larger, even though we have "if (0)".

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
drivers/mtd/ubi/debug.h