Re: [PATCH linux-next] net: atm: use sysfs_emit() instead of scnprintf().
From: Jiri Slaby
Date: Mon Mar 17 2025 - 02:22:46 EST
On 15. 03. 25, 7:12, xie.ludan@xxxxxxxxxx wrote:
@@ -37,7 +37,7 @@ static ssize_t atmaddress_show(struct device *cdev,
spin_lock_irqsave(&adev->lock, flags);
list_for_each_entry(aaddr, &adev->local, entry) {
-count += scnprintf(buf + count, PAGE_SIZE - count,
+count += sysfs_emit(buf + count,
This is wrong too [1].
[1]
https://lore.kernel.org/all/9c552d9a-2d46-4069-a9c4-35fab857bfc3@xxxxxxxxxx/
regards,
--
js
suse labs