]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM: wakeup: Delete space in the end of string shown by pm_show_wakelocks()
authorZijun Hu <quic_zijuhu@quicinc.com>
Mon, 5 May 2025 09:26:51 +0000 (17:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:10 +0000 (11:05 +0100)
commit3319b48d1ba2d60a31d7f034669d5ccf8d6aefbc
treef689ef4f408fba745a99edc7be35e7128a6f0165
parentb227c27359a02caf73506b77149978264df0565d
PM: wakeup: Delete space in the end of string shown by pm_show_wakelocks()

[ Upstream commit f0050a3e214aa941b78ad4caf122a735a24d81a6 ]

pm_show_wakelocks() is called to generate a string when showing
attributes /sys/power/wake_(lock|unlock), but the string ends
with an unwanted space that was added back by mistake by commit
c9d967b2ce40 ("PM: wakeup: simplify the output logic of
pm_show_wakelocks()").

Remove the unwanted space.

Fixes: c9d967b2ce40 ("PM: wakeup: simplify the output logic of pm_show_wakelocks()")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://patch.msgid.link/20250505-fix_power-v1-1-0f7f2c2f338c@quicinc.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/power/wakelock.c