linux/drivers/vdpa
Li Zhijian 7b1b5c7fff vdpa: Convert sprintf/snprintf to sysfs_emit
Per filesystems/sysfs.rst, show() should only use sysfs_emit()
or sysfs_emit_at() when formatting the value to be returned to user space.

coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().

sprintf() will be converted as weel if they have.

Generally, this patch is generated by
make coccicheck M=<path/to/file> MODE=patch \
COCCI=scripts/coccinelle/api/device_attr_show.cocci

No functional change intended

CC: "Michael S. Tsirkin" <mst@redhat.com>
CC: Jason Wang <jasowang@redhat.com>
CC: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
CC: virtualization@lists.linux.dev
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Message-Id: <20240314095853.1326111-1-lizhijian@fujitsu.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-05-22 08:31:15 -04:00
..
alibaba eni_vdpa: implement vdpa_config_ops.get_vq_size 2024-03-19 02:45:50 -04:00
ifcvf vDPA/ifcvf: implement vdpa_config_ops.get_vq_num_min 2024-03-19 02:45:50 -04:00
mlx5 vdpa/mlx5: Allow CVQ size changes 2024-03-19 02:45:49 -04:00
pds vdpa/pds: fixes for VF vdpa flr-aer handling 2024-03-19 02:45:49 -04:00
solidrun vdpa/snet: implement the resume vDPA callback 2023-06-27 10:47:08 -04:00
vdpa_sim vdpa_sim: implement vdpa_config_ops.get_vq_size for vDPA simulator 2024-03-19 02:45:50 -04:00
vdpa_user vduse: implement vdpa_config_ops.get_vq_size for vduse 2024-03-19 02:45:50 -04:00
virtio_pci vp_vdpa: Fix return value check vp_vdpa_request_irq 2024-05-22 08:31:15 -04:00
Kconfig pds_vdpa: pds_vdps.rst and Kconfig 2023-06-27 10:47:09 -04:00
Makefile pds_vdpa: Add new vDPA driver for AMD/Pensando DSC 2023-06-27 10:47:08 -04:00
vdpa.c vdpa: Convert sprintf/snprintf to sysfs_emit 2024-05-22 08:31:15 -04:00