diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 2ce011fae249..e430645748a7 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -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;