From: Artem Bityutskiy Date: Fri, 19 Aug 2011 16:02:27 +0000 (+0300) Subject: UBI: do not link debug messages when debugging is disabled X-Git-Tag: v3.1-rc6~28^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efabc84768ee8e79b50ad6ad6cff94d66da01f7;p=pandora-kernel.git 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 --- Reading git-diff-tree failed