]> git.baikalelectronics.ru Git - kernel.git/commit
block: aoe: fixup coccinelle warnings
authorYe Guojin <ye.guojin@zte.com.cn>
Thu, 21 Oct 2021 06:49:31 +0000 (06:49 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Oct 2021 14:54:15 +0000 (08:54 -0600)
commitd1e5741c230c582020e389fe2e0d53624525dedd
treee399f07acd1076e0b80d2cae863e5d6ce3ef3d98
parenta63400476cb99198d368101deb37423534fc03e7
block: aoe: fixup coccinelle warnings

coccicheck complains about the use of snprintf() in sysfs show
functions:
WARNING  use scnprintf or sprintf

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Link: https://lore.kernel.org/r/20211021064931.1047687-1-ye.guojin@zte.com.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/aoe/aoeblk.c