aboutsummaryrefslogtreecommitdiff
path: root/tools/hv
diff options
context:
space:
mode:
authorGravatar Li Zhijian <lizhijian@fujitsu.com> 2024-03-19 11:43:50 +0800
committerGravatar Wei Liu <wei.liu@kernel.org> 2024-04-10 21:23:16 +0000
commitd9ea7a3f66a5c7e1a2f73cf4b20f5eff3ced4ff8 (patch)
tree20978a077d8cfd6567305362f3f7f586b1e3581e /tools/hv
parentmshyperv: Introduce hv_numa_node_to_pxm_info() (diff)
downloadlinux-d9ea7a3f66a5c7e1a2f73cf4b20f5eff3ced4ff8.tar.gz
linux-d9ea7a3f66a5c7e1a2f73cf4b20f5eff3ced4ff8.tar.bz2
linux-d9ea7a3f66a5c7e1a2f73cf4b20f5eff3ced4ff8.zip
hv: vmbus: Convert sprintf() family to sysfs_emit() family
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() and scnprintf() will be converted as well if these files have such abused cases. 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: "K. Y. Srinivasan" <kys@microsoft.com> CC: Haiyang Zhang <haiyangz@microsoft.com> CC: Wei Liu <wei.liu@kernel.org> CC: Dexuan Cui <decui@microsoft.com> CC: linux-hyperv@vger.kernel.org Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Link: https://lore.kernel.org/r/20240319034350.1574454-1-lizhijian@fujitsu.com Signed-off-by: Wei Liu <wei.liu@kernel.org> Message-ID: <20240319034350.1574454-1-lizhijian@fujitsu.com>
Diffstat (limited to 'tools/hv')
0 files changed, 0 insertions, 0 deletions