Artem Bityutskiy 9efabc8476 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>
2011-08-19 19:02:27 +03:00
..
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2011-05-27 20:06:53 -07:00
2011-05-25 02:25:35 +01:00
2010-08-08 20:58:20 +01:00
2011-03-31 11:26:23 -03:00
2011-05-25 01:54:50 +01:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2011-03-31 11:26:23 -03:00
2010-08-08 20:58:20 +01:00