From: Ben Hutchings Date: Fri, 4 Nov 2011 22:29:14 +0000 (+0000) Subject: sfc: Consistently test DEBUG macro, not EFX_ENABLE_DEBUG X-Git-Tag: v3.4-rc1~177^2~452^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f3f9d6c441faa323444b2f6b092d630fcd7d04c;p=pandora-kernel.git sfc: Consistently test DEBUG macro, not EFX_ENABLE_DEBUG The netif_dbg() macro is defined in . If the DEBUG macro is defined, it logs a message at 'debug' level, otherwise it does nothing. In net_driver.h we define DEBUG if EFX_ENABLE_DEBUG is defined, but this is too late for those source files that already got a definition of netif_dbg() by including Get rid of EFX_ENABLE_DEBUG, and only define and test DEBUG. In mtd.c, we do not use DEBUG as a condition flag but are forced to use the DEBUG macro-function from . Undefine DEBUG before including it. Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed