Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] PCI / ACPI / PM: Use correct power state strings in messages
@ 2013-06-13 22:29 Rafael J. Wysocki
  2013-06-14 17:08 ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2013-06-13 22:29 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: LKML, Linux PCI, Linux PM list, ACPI Devel Maling List

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

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.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---

For 3.11.

Thanks,
Rafael

---
 drivers/pci/pci-acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-pm/drivers/pci/pci-acpi.c
===================================================================
--- linux-pm.orig/drivers/pci/pci-acpi.c
+++ linux-pm/drivers/pci/pci-acpi.c
@@ -211,7 +211,7 @@ static int acpi_pci_set_power_state(stru
 
 	if (!error)
 		dev_info(&dev->dev, "power state changed by ACPI to %s\n",
-			 pci_power_name(state));
+			 acpi_power_state_string(state_conv[state]));
 
 	return error;
 }


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-06-14 23:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 22:29 [PATCH] PCI / ACPI / PM: Use correct power state strings in messages Rafael J. Wysocki
2013-06-14 17:08 ` Bjorn Helgaas
2013-06-14 22:28   ` Rafael J. Wysocki
2013-06-14 22:49     ` Bjorn Helgaas
2013-06-14 23:13       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox