(Trivial) early_smbus: fix printsmbus macro

When I've first written this macro in 2011, the correct define for
verbose SMBus message was CONFIG_DEBUG_SMBUS_SETUP. This has since
been changed to CONFIG_DEBUG_SMBUS. I didn't catch that, and this made
the printsmbus macro always evaluate to an empty statement.

Use the proper CONFIG_DEBUG_SMBUS define. This makes printsmbus
functional again.

Change-Id: Iaf03354b179cc4a061e0b65f5b746af10f5d2b88
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/3379
Tested-by: build bot (Jenkins)
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
Alexandru Gagniuc 2013-06-05 20:01:42 -05:00 committed by Christian Gmeiner
parent 3979eda571
commit 5c4645b0ee
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
/** /**
* \brief printk macro for SMBus debugging * \brief printk macro for SMBus debugging
*/ */
#if defined(CONFIG_DEBUG_SMBUS_SETUP) && (CONFIG_DEBUG_SMBUS_SETUP) #if defined(CONFIG_DEBUG_SMBUS) && (CONFIG_DEBUG_SMBUS)
#define printsmbus(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__) #define printsmbus(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__)
#else #else
#define printsmbus(x, ...) #define printsmbus(x, ...)