diff options
author | Qing Wang <wangqing@vivo.com> | 2021-10-29 09:09:30 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-29 15:43:21 +0300 |
commit | 1b86db5f4e025840e0bf7cef2b10e84531954386 (patch) | |
tree | 125977979d9d84e879d63bd866b9d5cfcb8bc134 /drivers/of/resolver.c | |
parent | cf2197ca4b8c199d188593ca6800ea1827c42171 (diff) | |
download | linux-1b86db5f4e025840e0bf7cef2b10e84531954386.tar.xz |
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>
Diffstat (limited to 'drivers/of/resolver.c')
0 files changed, 0 insertions, 0 deletions