i2c/i2c_quark_se_ss: fix build issue with debugging

Fixes a build issue when CONFIG_I2C_DEBUG is turned on.

Change-Id: I8df72e41d0809f99c9c3855cbfcbc5abc60cbca1
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2016-01-11 13:15:07 -08:00 committed by Anas Nashif
commit 0e423317e2

View file

@ -38,6 +38,7 @@
#ifndef CONFIG_I2C_DEBUG
#define DBG(...) { ; }
#else
#include <misc/printk.h>
#define DBG printk
#endif /* CONFIG_I2C_DEBUG */
@ -567,7 +568,7 @@ int i2c_qse_ss_initialize(struct device *dev)
if (i2c_qse_ss_runtime_configure(dev, dw->app_config.raw) != DEV_OK) {
DBG("I2C_SS: Cannot set default configuration 0x%x\n",
dev->app_config.raw);
dw->app_config.raw);
return DEV_NOT_CONFIG;
}