mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
PM: wakeup: Delete space in the end of string shown by pm_show_wakelocks()
[ Upstream commitf0050a3e21
] 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 commitc9d967b2ce
("PM: wakeup: simplify the output logic of pm_show_wakelocks()"). Remove the unwanted space. Fixes:c9d967b2ce
("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>
This commit is contained in:
parent
3b46ca9182
commit
c5d675eeba
|
@ -49,6 +49,9 @@ ssize_t pm_show_wakelocks(char *buf, bool show_active)
|
|||
len += sysfs_emit_at(buf, len, "%s ", wl->name);
|
||||
}
|
||||
|
||||
if (len > 0)
|
||||
--len;
|
||||
|
||||
len += sysfs_emit_at(buf, len, "\n");
|
||||
|
||||
mutex_unlock(&wakelocks_lock);
|
||||
|
|
Loading…
Reference in New Issue
Block a user