diff options
author | Li Zhijian <[email protected]> | 2024-03-14 17:58:53 +0800 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-05-22 08:31:15 -0400 |
commit | 7b1b5c7fff05bdf2dc21ee124907df1f8cc819ad (patch) | |
tree | ed4cdd752dc739d289a2059e7174274492617077 /include/linux/fpga/fpga-mgr.h | |
parent | f181a3736b7f76410040a3f16cbbfbdec2580bf9 (diff) |
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" <[email protected]>
CC: Jason Wang <[email protected]>
CC: Xuan Zhuo <[email protected]>
CC: [email protected]
Signed-off-by: Li Zhijian <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions