mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
s390/vmur: Switch over to sysfs_emit()
Per Documentation/filesystems/sysfs.rst, sysfs_emit() is preferred for presenting attributes to user space in sysfs. Convert the left-over uses in the char/vmur code. Signed-off-by: Mete Durlu <meted@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
95ea212082
commit
a6a56aec4a
|
|
@ -345,7 +345,7 @@ static ssize_t ur_attr_reclen_show(struct device *dev,
|
|||
urd = urdev_get_from_cdev(to_ccwdev(dev));
|
||||
if (!urd)
|
||||
return -ENODEV;
|
||||
rc = sprintf(buf, "%zu\n", urd->reclen);
|
||||
rc = sysfs_emit(buf, "%zu\n", urd->reclen);
|
||||
urdev_put(urd);
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user