linux-stable/drivers/vfio/mdev
Bo Liu 038ef0a476 vfio/mdev: Use sysfs_emit() to instead of sprintf()
Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230129084117.2384-1-liubo03@inspur.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2023-01-30 12:16:13 -07:00
..
Kconfig vfio-mdev: turn VFIO_MDEV into a selectable symbol 2023-01-23 11:26:29 -07:00
Makefile vfio/mdev: Remove vfio_mdev.c 2022-04-21 07:36:56 -04:00
mdev_core.c vfio/mdev: add mdev available instance checking to the core 2022-10-04 12:06:58 -06:00
mdev_driver.c vfio/mdev: consolidate all the description sysfs into the core code 2022-10-04 12:06:58 -06:00
mdev_private.h vfio/mdev: unexport mdev_bus_type 2022-10-04 12:06:58 -06:00
mdev_sysfs.c vfio/mdev: Use sysfs_emit() to instead of sprintf() 2023-01-30 12:16:13 -07:00