cpufreq: Avoid printing kernel addresses in cpufreq_resume()
authorLiao Chang <liaochang1@huawei.com>
Tue, 29 Aug 2023 07:01:50 +0000 (07:01 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 29 Aug 2023 18:17:24 +0000 (20:17 +0200)
commit1f464cb4a7febcc8b5ad325f3f9a83c8d4e4c199
tree8cafb6fa5c54a70861941c51b2dbb21ea6f94613
parentccc5e9817719f59b3dea7b7a168861b4bf0b4ff4
cpufreq: Avoid printing kernel addresses in cpufreq_resume()

The pointer value of policy and driver structure are currently printed
in the error messages of cpufreq_resume(), this is not recommended and
helpful.

In order to be consistent with the error message in cpufreq_suspend()
and easier to understand, print the name of driver strcture and the
manage CPU of policy structure individually in the error messages of
cpufreq_resume().

Link: https://lore.kernel.org/all/b7be717c-41d8-bbbf-3e97-3799948ab757@huawei.com
Signed-off-by: Liao Chang <liaochang1@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c