diff options
author | 2021-10-29 14:09:30 +0800 | |
---|---|---|
committer | 2021-10-29 06:43:21 -0600 | |
commit | 1b86db5f4e025840e0bf7cef2b10e84531954386 (patch) | |
tree | 125977979d9d84e879d63bd866b9d5cfcb8bc134 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcache: move uapi header bcache.h to bcache code directory (diff) | |
download | wireguard-linux-1b86db5f4e025840e0bf7cef2b10e84531954386.tar.xz wireguard-linux-1b86db5f4e025840e0bf7cef2b10e84531954386.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions