summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2013-06-05 20:01:42 -0500
committerChristian Gmeiner <christian.gmeiner@gmail.com>2013-06-06 08:52:57 +0200
commit5c4645b0ee798e52a6bf18ae1544dd86f8dafdaa (patch)
treec0c5dd85bd249c000694f74502d6521ec50bfa94
parent3979eda5716f162d18b9fde05aba68b1bb747c6b (diff)
downloadcoreboot-5c4645b0ee798e52a6bf18ae1544dd86f8dafdaa.tar.xz
(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>
-rw-r--r--src/include/device/early_smbus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/device/early_smbus.h b/src/include/device/early_smbus.h
index 77c9078a1b..5e15bb1e00 100644
--- a/src/include/device/early_smbus.h
+++ b/src/include/device/early_smbus.h
@@ -55,7 +55,7 @@
/**
* \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__)
#else
#define printsmbus(x, ...)