PM: ACPI: Output correct message on target power state
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 21 Apr 2020 07:55:16 +0000 (15:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2020 06:16:38 +0000 (08:16 +0200)
commit712be53558a96f11b83cd86ac6e74bf5960e4826
tree6e2c9fd643da3045862eb80d2d22e0d27522e8d3
parentf142b25cc88094ac7f42f789f881b614ed085b0a
PM: ACPI: Output correct message on target power state

commit a9b760b0266f563b4784f695bbd0e717610dc10a upstream.

Transitioned power state logged at the end of setting ACPI power.

However, D3cold won't be in the message because state can only be
D3hot at most.

Use target_state to corretly report when power state is D3cold.

Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/device_pm.c