treewide: Replace scnprintf with sysfs_emit in
Subsystems (2)
PATCH 1/1 treewide: Replace scnprintf with sysfs_emit in
Use sysfs_emit() to format sysfs output instead of scnprintf() as recommended by the kernel documentation.
Signed-off-by Abhinav Ananthu <[email protected]>
--- drivers/tee/optee/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/optee/core.c +1 -1
@@ -72,7 +72,7 @@ static ssize_t rpmb_routing_model_show(struct device *dev,else s ="user" ; -return scnprintf (buf,PAGE_SIZE ,"%s\n" , s); +return sysfs_emit (buf,"%s\n" , s); }static DEVICE_ATTR_RO (rpmb_routing_model);
Signature · 1 line
2.34.1
Hi Abhinav,
Quoted 8 lines · Abhinav Ananthu
Use
sysfs_emit()to format sysfs output instead ofscnprintf()as recommended by the kernel documentation.Signed-off-by Abhinav Ananthu <[email protected]>--- drivers/tee/optee/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Your patch looks good, but I've already accepted another patch for the same issue.
Thanks,
Jens