mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
net-sysfs: switch xps_queue_show() to sysfs_emit()
Switch the function to use the proper sysfs_emit("%pb").
Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Link: https://patch.msgid.link/20260319201713.941956-3-ynorov@nvidia.com
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
6e4235adfa
commit
de69301dc2
|
|
@ -1739,7 +1739,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 = sysfs_emit(buf, "%*pb\n", nr_ids, mask);
|
||||
bitmap_free(mask);
|
||||
|
||||
return len < PAGE_SIZE ? len : -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user