]> Pileus Git - ~andy/linux/commit
ACPI / PM: Make messages in acpi_device_set_power() print device names
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2013 12:34:55 +0000 (14:34 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2013 12:34:55 +0000 (14:34 +0200)
commitb69137a74b7a9451b3da504d1ef9ead7cb393922
tree73b279d7fd757b92be26e5776d19ba6971139ffa
parent2c7d132a589077b31493b3ea82ac83b1f72c93e1
ACPI / PM: Make messages in acpi_device_set_power() print device names

Modify acpi_device_set_power() so that diagnostic messages printed by
it to the kernel log always contain the name of the device concerned
to make it possible to identify the device that triggered the message
if need be.

Also replace printk(KERN_WARNING ) with dev_warn() everywhere in that
function.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
drivers/acpi/device_pm.c