From 485dde19dac44836271c79f80b95de78d40a70ca Mon Sep 17 00:00:00 2001 From: Jani Pajarinen Date: Mon, 11 Jul 2016 18:02:32 +0100 Subject: [PATCH] i2c: Fixed i2c_dw spamming when logs are enabled Added CONFIG_SYS_LOG_I2C_LEVEL define, so that DW I2C driver will not print traces unless requested with CONFIG_SYS_LOG_I2C_LEVEL. Currently it doesn't obey it, so DW I2C spams DBG traces when logging is enabled. Change-Id: I87dc1d922ba61d39f26945627602864c75d9bf33 Signed-off-by: Jani Pajarinen --- drivers/i2c/i2c_dw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/i2c_dw.c b/drivers/i2c/i2c_dw.c index 18fc513b465..fd11efdbfeb 100644 --- a/drivers/i2c/i2c_dw.c +++ b/drivers/i2c/i2c_dw.c @@ -43,6 +43,7 @@ #include "i2c_dw.h" #include "i2c_dw_registers.h" +#define SYS_LOG_LEVEL CONFIG_SYS_LOG_I2C_LEVEL #include static inline void _i2c_dw_data_ask(struct device *dev)