WSL2-Linux-Kernel/drivers/ptp
Yang Guang 1eb5980453 ptp: replace snprintf with sysfs_emit
[ Upstream commit e2cf07654e ]

coccinelle report:
./drivers/ptp/ptp_sysfs.c:17:8-16:
WARNING: use scnprintf or sprintf
./drivers/ptp/ptp_sysfs.c:390:8-16:
WARNING: use scnprintf or sprintf

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Signed-off-by: David Yang <davidcomponentone@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 20:59:01 +02:00
..
Kconfig
Makefile
idt8a340_reg.h
ptp_chardev.c
ptp_clock.c
ptp_clockmatrix.c
ptp_clockmatrix.h
ptp_dte.c
ptp_idt82p33.c
ptp_idt82p33.h
ptp_ines.c
ptp_kvm_arm.c
ptp_kvm_common.c
ptp_kvm_x86.c
ptp_ocp.c
ptp_pch.c
ptp_private.h
ptp_qoriq.c
ptp_qoriq_debugfs.c
ptp_sysfs.c ptp: replace snprintf with sysfs_emit 2022-04-13 20:59:01 +02:00
ptp_vclock.c
ptp_vmw.c