Thread (19 messages) 19 messages, 6 authors, 2026-03-03
STALE111d

[PATCH 10/12] net-sysfs: switch xps_queue_show() to using scnprintf()

From: Yury Norov <hidden>
Date: 2026-02-19 18:14:48
Also in: linux-arm-kernel, linux-fpga, linux-pm, linuxppc-dev, lkml
Subsystem: networking [general], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Switch the function to use a more common scnprintf("%pb").

Signed-off-by: Yury Norov <redacted>
---
 net/core/net-sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 07624b682b08..501c75ecda1c 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -1754,7 +1754,7 @@ static ssize_t xps_queue_show(struct net_device *dev, unsigned int index,
 out_no_maps:
 	rcu_read_unlock();
 
-	len = bitmap_print_to_pagebuf(false, buf, mask, nr_ids);
+	len = scnprintf(buf, rest_of_page(buf), "%*pb\n", nr_ids, mask);
 	bitmap_free(mask);
 
 	return len < PAGE_SIZE ? len : -EINVAL;
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help