]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
LoongArch: Replace sprintf() with sysfs_emit()
authorTao Cui <cuitao@kylinos.cn>
Thu, 18 Sep 2025 11:44:04 +0000 (19:44 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 18 Sep 2025 11:44:04 +0000 (19:44 +0800)
commitd6d69f0edde63b553345d4efaceb7daed89fe04c
tree1c6ee0b89ffb8800a471ad6fcc244f336171505b
parent51adb03e6b865c0c6790f29659ff52d56742de2e
LoongArch: 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.

No functional change intended.

Cc: stable@vger.kernel.org
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/env.c