hwmon: (it87) Add chip_id in some info message
authorFrank Crawford <frank@crawford.emu.id.au>
Sat, 28 Jan 2023 06:03:05 +0000 (17:03 +1100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Feb 2023 15:30:11 +0000 (07:30 -0800)
In cases where there are multiple chips, print out which chip is
referred to, in the informational message.

Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
Link: https://lore.kernel.org/r/20230128060308.1549707-5-frank@crawford.emu.id.au
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c

index 95bd4ca..01d890a 100644 (file)
@@ -2503,13 +2503,15 @@ static int __init it87_find(int sioaddr, unsigned short *address,
 
        superio_select(sioaddr, PME);
        if (!(superio_inb(sioaddr, IT87_ACT_REG) & 0x01)) {
-               pr_info("Device not activated, skipping\n");
+               pr_info("Device (chip %s ioreg 0x%x) not activated, skipping\n",
+                       config->model, sioaddr);
                goto exit;
        }
 
        *address = superio_inw(sioaddr, IT87_BASE_REG) & ~(IT87_EXTENT - 1);
        if (*address == 0) {
-               pr_info("Base address not set, skipping\n");
+               pr_info("Base address not set (chip %s ioreg 0x%x), skipping\n",
+                       config->model, sioaddr);
                goto exit;
        }