mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-21 18:48:44 -05:00
s390/cio/scm: 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 cio/scm code. Signed-off-by: Mete Durlu <meted@linux.ibm.com> Acked-by: Vineeth Vijayan <vneethv@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:
committed by
Heiko Carstens
parent
ece8f29d69
commit
2c798d583d
@@ -91,7 +91,7 @@ static ssize_t show_##name(struct device *dev, \
|
||||
int ret; \
|
||||
\
|
||||
device_lock(dev); \
|
||||
ret = sprintf(buf, "%u\n", scmdev->attrs.name); \
|
||||
ret = sysfs_emit(buf, "%u\n", scmdev->attrs.name); \
|
||||
device_unlock(dev); \
|
||||
\
|
||||
return ret; \
|
||||
|
||||
Reference in New Issue
Block a user