nvme: convert sysfs sprintf/snprintf family to sysfs_emit
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 2 Feb 2021 07:06:17 +0000 (15:06 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 15:38:02 +0000 (16:38 +0100)
commitf720a8edbc6470fad8b47d0d4ae092a6c63340bb
treea2136951822a5d15ff4200e53284faed652ca84f
parent6751c1e3cff3aa763c760c08862627069a37b50e
nvme: convert sysfs sprintf/snprintf family to sysfs_emit

Fix the following coccicheck warning:

./drivers/nvme/host/core.c:3580:8-16: WARNING: use scnprintf or sprintf.
./drivers/nvme/host/core.c:3570:8-16: WARNING: use scnprintf or sprintf.
./drivers/nvme/host/core.c:3560:8-16: WARNING: use scnprintf or sprintf.
./drivers/nvme/host/core.c:3526:8-16: WARNING: use scnprintf or sprintf.
./drivers/nvme/host/core.c:2833:8-16: WARNING: use scnprintf or sprintf.

Reported-by: Abaci Robot<abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c