i2c: print more info when acpi_i2c_space_handler() fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Sat, 9 Jul 2016 04:35:03 +0000 (13:35 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 14 Jul 2016 13:07:53 +0000 (22:07 +0900)
Use a warning loglevel instead of info and switch to dev_* for device
info. Also print which client was accessed.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c

index a2f69db4f4dff3ee8748e6733b1f002c98249954..4b3d760b3f515c508d76f32a51b9a47a8bcd63d7 100644 (file)
@@ -400,7 +400,8 @@ acpi_i2c_space_handler(u32 function, acpi_physical_address command,
                break;
 
        default:
-               pr_info("protocol(0x%02x) is not supported.\n", accessor_type);
+               dev_warn(&adapter->dev, "protocol 0x%02x not supported for client 0x%02x\n",
+                        accessor_type, client->addr);
                ret = AE_BAD_PARAMETER;
                goto err;
        }