From: Jean Delvare Date: Sun, 30 Oct 2011 12:47:25 +0000 (+0100) Subject: i2c-algo-bit: Be verbose on bus testing failure X-Git-Tag: v3.2-rc1~116^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6beb67d8e77454200acc3755344944bd946cded;p=profile%2Fcommon%2Fkernel-common.git i2c-algo-bit: Be verbose on bus testing failure If bus testing fails due to the bus being seen as busy, it might be helpful for developers to know which line is unexpectedly low. Signed-off-by: Jean Delvare Reviewed-by: Alex Deucher --- diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 66bebfc..c20530a 100644 --- a/drivers/i2c/algos/i2c-algo-bit.c +++ b/drivers/i2c/algos/i2c-algo-bit.c @@ -250,7 +250,9 @@ static int test_bus(struct i2c_adapter *i2c_adap) sda = getsda(adap); scl = (adap->getscl == NULL) ? 1 : getscl(adap); if (!scl || !sda) { - printk(KERN_WARNING "%s: bus seems to be busy\n", name); + printk(KERN_WARNING + "%s: bus seems to be busy (scl=%d, sda=%d)\n", + name, scl, sda); goto bailout; }