Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Improve logging on failure to probe for ->class devices

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 <luto@amacapital.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Andy Lutomirski and committed by
Wolfram Sang
d63a9e85 d654b548

+2 -1
+2 -1
drivers/i2c/i2c-core.c
··· 1665 1665 err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, 0, 1666 1666 I2C_SMBUS_BYTE, &dummy); 1667 1667 else { 1668 - dev_warn(&adap->dev, "No suitable probing method supported\n"); 1668 + dev_warn(&adap->dev, "No suitable probing method supported for address 0x%02X\n", 1669 + addr); 1669 1670 err = -EOPNOTSUPP; 1670 1671 } 1671 1672