Skip to content
Commit 1b86db5f authored by Qing Wang's avatar Qing Wang Committed by Jens Axboe
Browse files

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: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarQing Wang <wangqing@vivo.com>
Signed-off-by: default avatarColy Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211029060930.119923-3-colyli@suse.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cf2197ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment