diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-19 04:06:03 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-08 03:50:08 -0500 |
commit | 43cdd1b716b26f6af16da4e145b6578f98798bf6 (patch) | |
tree | aa61735eac7b0bb90b548a41886a09cd8e29a281 | |
parent | 1a9a126b5098160ca934a352617e9e65dbfa679d (diff) |
ACPI: sbshc: remove raw pointer from printk() message
There's no need to be printing a raw kernel pointer to the kernel log at
every boot. So just remove it, and change the whole message to use the
correct dev_info() call at the same time.
Reported-by: Wang Qize <wang_qize@venustech.com.cn>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/sbshc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/sbshc.c b/drivers/acpi/sbshc.c index 2fa8304171e0..7a3431018e0a 100644 --- a/drivers/acpi/sbshc.c +++ b/drivers/acpi/sbshc.c | |||
@@ -275,8 +275,8 @@ static int acpi_smbus_hc_add(struct acpi_device *device) | |||
275 | device->driver_data = hc; | 275 | device->driver_data = hc; |
276 | 276 | ||
277 | acpi_ec_add_query_handler(hc->ec, hc->query_bit, NULL, smbus_alarm, hc); | 277 | acpi_ec_add_query_handler(hc->ec, hc->query_bit, NULL, smbus_alarm, hc); |
278 | printk(KERN_INFO PREFIX "SBS HC: EC = 0x%p, offset = 0x%0x, query_bit = 0x%0x\n", | 278 | dev_info(&device->dev, "SBS HC: offset = 0x%0x, query_bit = 0x%0x\n", |
279 | hc->ec, hc->offset, hc->query_bit); | 279 | hc->offset, hc->query_bit); |
280 | 280 | ||
281 | return 0; | 281 | return 0; |
282 | } | 282 | } |