smc91x: improve definition of debug macros
authorZi Shen Lim <zlim.lnx@gmail.com>
Wed, 23 Apr 2014 03:04:42 +0000 (20:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:07:48 +0000 (13:07 -0400)
commita450a685791d12c0a477b75d630d6ae66acab9a7
tree2f7adac460770d495e43038a790f3ddd32b7f07f
parent83d5b7ef99c9f05e87333b334a638de1264ab8e4
smc91x: improve definition of debug macros

Redefine some macros that were conditioned upon SMC_DEBUG level.

By allowing compiler to verify parameters used by these macros
unconditionally, we can flag compilation failures.

Compiler will still optimize out the unused code path depending on
SMC_DEBUG, so this is a net gain.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc91x.c