diff options
Diffstat (limited to 'drivers/pci/p2pdma.c')
-rw-r--r-- | drivers/pci/p2pdma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 69c25e71590a..50cdde3e9a8b 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -57,7 +57,7 @@ static ssize_t size_show(struct device *dev, struct device_attribute *attr, size = gen_pool_size(p2pdma->pool); rcu_read_unlock(); - return scnprintf(buf, PAGE_SIZE, "%zd\n", size); + return sysfs_emit(buf, "%zd\n", size); } static DEVICE_ATTR_RO(size); @@ -74,7 +74,7 @@ static ssize_t available_show(struct device *dev, struct device_attribute *attr, avail = gen_pool_avail(p2pdma->pool); rcu_read_unlock(); - return scnprintf(buf, PAGE_SIZE, "%zd\n", avail); + return sysfs_emit(buf, "%zd\n", avail); } static DEVICE_ATTR_RO(available); @@ -91,7 +91,7 @@ static ssize_t published_show(struct device *dev, struct device_attribute *attr, published = p2pdma->p2pmem_published; rcu_read_unlock(); - return scnprintf(buf, PAGE_SIZE, "%d\n", published); + return sysfs_emit(buf, "%d\n", published); } static DEVICE_ATTR_RO(published); |