OSDN Git Service

PCI / ACPI / PM: Use correct power state strings in messages
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Jun 2013 22:29:50 +0000 (00:29 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Jun 2013 22:35:42 +0000 (16:35 -0600)
commitfc6504b3a4dc9beae782a11e6f7c3c4a9f077fb8
tree8cd75a5e142b72ca7c07f6c84c7f90c6520d1973
parentbd0c50240b71a69ba6cc690797e2371002cd241c
PCI / ACPI / PM: Use correct power state strings in messages

Make acpi_pci_set_power_state() print the name of the ACPI device
power state the device has been actually put into instead of printing
the name of the requested PCI device power state, which need not be
the same.

[bhelgaas: use ACPI_STATE_D3_COLD (ACPI_STATE_D3 == ACPI_STATE_D3_COLD)]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-acpi.c