PCI/PM: Decode D3cold power state correctly
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 2 Aug 2019 23:47:22 +0000 (18:47 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Nov 2019 23:36:11 +0000 (17:36 -0600)
commite43f15ea2f6d6858675fa1baa5cb624f17269af0
treefbf750b1a356b3e00d82e511c4ffbf910d0d2a16
parent9c77e63bd8dcbb3b59294e9176c00c5fcab3c9c6
PCI/PM: Decode D3cold power state correctly

Use pci_power_name() to print pci_power_t correctly.  This changes:

  "state 0" or "D0"   to   "D0"
  "state 1" or "D1"   to   "D1"
  "state 2" or "D2"   to   "D2"
  "state 3" or "D3"   to   "D3hot"
  "state 4" or "D4"   to   "D3cold"

Changes dmesg logging only, no other functional change intended.

Link: https://lore.kernel.org/r/20190822200551.129039-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pci.c