i2c: Improve logging on failure to probe for ->class devices
authorAndy Lutomirski <[email protected]>
Wed, 17 Jul 2013 20:27:59 +0000 (13:27 -0700)
committerWolfram Sang <[email protected]>
Thu, 15 Aug 2013 12:49:58 +0000 (14:49 +0200)
While writing the i2c-imc driver, I noticed that the warning message
when the i2c core can't figure out how to probe is mostly useless.
This trivial patch improves it.

Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/i2c-core.c

index d075df641c2ca19c2c80a62142918eea8246130e..3d9ca2d3d77ec1a876fdb95021f97a521fb0e279 100644 (file)
@@ -1665,7 +1665,8 @@ static int i2c_default_probe(struct i2c_adapter *adap, unsigned short addr)
                err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, 0,
                                     I2C_SMBUS_BYTE, &dummy);
        else {
-               dev_warn(&adap->dev, "No suitable probing method supported\n");
+               dev_warn(&adap->dev, "No suitable probing method supported for address 0x%02X\n",
+                        addr);
                err = -EOPNOTSUPP;
        }