[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250622082910.13897-1-abhinav.ogl@gmail.com>
Date: Sun, 22 Jun 2025 13:59:11 +0530
From: Abhinav Ananthu <abhinav.ogl@...il.com>
To: jens.wiklander@...aro.org
Cc: sumit.garg@...nel.org,
op-tee@...ts.trustedfirmware.org,
linux-kernel@...r.kernel.org,
Abhinav Ananthu <abhinav.ogl@...il.com>
Subject: [PATCH] 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 <abhinav.ogl@...il.com>
---
drivers/tee/optee/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index c75fddc83576..ce44e3498d37 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -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);
--
2.34.1
Powered by blists - more mailing lists