ext4: replace snprintf in show functions with sysfs_emit
authorQing Wang <wangqing@vivo.com>
Wed, 13 Oct 2021 03:28:51 +0000 (20:28 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2022 18:25:55 +0000 (13:25 -0500)
commitdfac1a167068d60b36cc8f2081394a28b6fc424b
tree6b7711a72bb242408267a3d6e82e4bf92101d597
parent4013d47a5307fdb5c13370b5392498b00fedd274
ext4: replace snprintf in show functions with sysfs_emit

coccicheck complains about the use of snprintf() in sysfs show functions.

Fix the coccicheck warning:
WARNING: use scnprintf or sprintf.

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Signed-off-by: Qing Wang <wangqing@vivo.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/1634095731-4528-1-git-send-email-wangqing@vivo.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/sysfs.c