Qing Wang 1b86db5f4e bcache: replace snprintf in show functions with sysfs_emit
coccicheck complains about the use of snprintf() in sysfs show functions.

Fix the following coccicheck warning:
drivers/md/bcache/sysfs.h:54:12-20: WARNING: use scnprintf or sprintf.

Implement sysfs_print() by sysfs_emit() and remove snprint() since no one
uses it any more.

Suggested-by: Coly Li <colyli@suse.de>
Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211029060930.119923-3-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-29 06:43:21 -06:00
..
2021-08-10 13:32:40 -04:00
2021-02-26 15:49:51 -07:00
2021-10-21 09:00:56 -06:00
2021-06-04 12:07:37 -04:00
2021-08-16 10:50:32 -06:00
2021-08-10 13:32:40 -04:00
2020-12-16 13:09:32 -08:00
2021-06-14 22:32:07 -07:00
2019-03-12 10:15:18 -07:00
2021-06-14 22:32:07 -07:00