]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: use sysfs_emit instead of sprintf
authorDaniel Wagner <dwagner@suse.de>
Thu, 1 Apr 2021 09:54:10 +0000 (11:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 16:48:29 +0000 (18:48 +0200)
commit23f7c39a0492f6ab6b59d5d7673df1834a49ca2f
tree6046cad188aae9b10e4b90dbb81b350cab378e14
parent4b0713cb2ae1c0f7059b849683f413f5ac5890a4
nvme: use sysfs_emit instead of sprintf

sysfs_emit is the recommended API to use for formatting strings to be
returned to user space. It is equivalent to scnprintf and aware of the
PAGE_SIZE buffer size.

Suggested-by: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c