提交 be309c3c 编写于 作者: W Wolfram Sang 提交者: Wolfram Sang

i2c: print more info when acpi_i2c_space_handler() fails

Use a warning loglevel instead of info and switch to dev_* for device
info. Also print which client was accessed.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Acked-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 399d62ac
...@@ -400,7 +400,8 @@ acpi_i2c_space_handler(u32 function, acpi_physical_address command, ...@@ -400,7 +400,8 @@ acpi_i2c_space_handler(u32 function, acpi_physical_address command,
break; break;
default: 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; ret = AE_BAD_PARAMETER;
goto err; goto err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册