PM / suspend: Use mem_sleep_labels[] strings in messages
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Jul 2017 12:49:51 +0000 (14:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 Jul 2017 21:57:46 +0000 (23:57 +0200)
commitbebcdae3ec13b2171ff91594787ab37b3fdb3306
tree4739f619ba52c71e2c84cc5d980b7949c7322e20
parente516a1db43cea397cf63d395534236d9869f0310
PM / suspend: Use mem_sleep_labels[] strings in messages

Some messages in suspend.c currently print state names from
pm_states[], but that may be confusing if the mem_sleep sysfs
attribute is changed to anything different from "mem", because
in those cases the messages will say either "freeze" or "standby"
after writing "mem" to /sys/power/state.

To avoid the confusion, use mem_sleep_labels[] strings in those
messages instead.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
kernel/power/suspend.c