Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mete Durlu and committed by
Heiko Carstens
a6a56aec 95ea2120

+1 -1
+1 -1
drivers/s390/char/vmur.c
··· 345 345 urd = urdev_get_from_cdev(to_ccwdev(dev)); 346 346 if (!urd) 347 347 return -ENODEV; 348 - rc = sprintf(buf, "%zu\n", urd->reclen); 348 + rc = sysfs_emit(buf, "%zu\n", urd->reclen); 349 349 urdev_put(urd); 350 350 return rc; 351 351 }