]> git.baikalelectronics.ru Git - kernel.git/commit
ata: replace snprintf in show functions with sysfs_emit
authorYang Guang <yang.guang5@zte.com.cn>
Tue, 30 Nov 2021 00:04:11 +0000 (08:04 +0800)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 2 Dec 2021 04:13:45 +0000 (13:13 +0900)
commit2ced6ebc6689ea8db500b225f6f0984f9776a59f
treeffeee240089d71d16fb05c504ed62fb1ec235a48
parent6096e82908bde40fa4f39da741cf42fab3ac75f5
ata: replace snprintf in show functions with sysfs_emit

coccinelle report:
./drivers/ata/libata-sata.c:830: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: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-sata.c