firewire: Convert snprintf/sprintf to sysfs_emit
authorLi Zhijian <lizhijian@fujitsu.com>
Mon, 22 Jan 2024 05:39:42 +0000 (13:39 +0800)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 11 Mar 2024 01:38:13 +0000 (10:38 +0900)
commitd4db89c34521a83371fd46bea34834dff128a5cf
treed4813963a79a5ab2b612f3e41fdf25e4b5deddc5
parent4a2b06ca33763b363038d333274e212db6ff0de1
firewire: Convert snprintf/sprintf to sysfs_emit

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

coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().

> drivers/firewire/core-device.c:326:8-16: WARNING: please use sysfs_emit or sysfs_emit_at

No functional change intended

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20240122053942.80648-2-lizhijian@fujitsu.com
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-device.c