]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memory-failure: replace sprintf() with sysfs_emit()
authorzhangguopeng <zhangguopeng@kylinos.cn>
Tue, 29 Oct 2024 10:18:53 +0000 (18:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:33 +0000 (21:29 -0700)
commite57c5bfea8b2c18e3ffbbcaa59d91f13301bf14a
treea9fb348ab7ad19515a7f01df8528c4220ed6f410
parent5a9d42ee0ef31c8d76764a73b9cc888c3ce37667
mm/memory-failure: replace sprintf() with sysfs_emit()

As Documentation/filesystems/sysfs.rst suggested, show() should only use
sysfs_emit() or sysfs_emit_at() when formatting the value to be returned
to user space.

Link: https://lkml.kernel.org/r/20241029101853.37890-1-zhangguopeng@kylinos.cn
Signed-off-by: zhangguopeng <zhangguopeng@kylinos.cn>
Acked-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c