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)
commitff06ed7e815ccd3f80cfd4d5dd30687bc722e871
treee399f07acd1076e0b80d2cae863e5d6ce3ef3d98
parentcbab6ae0d0bd7459e53443c878b2a5355ac89426
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