From: Abhinav Ananthu <abhinav.ogl@gmail.com>
To: jens.wiklander@linaro.org
Cc: sumit.garg@kernel.org, op-tee@lists.trustedfirmware.org,
linux-kernel@vger.kernel.org,
Abhinav Ananthu <abhinav.ogl@gmail.com>
Subject: [PATCH] treewide: Replace scnprintf with sysfs_emit in
Date: Sun, 22 Jun 2025 13:59:11 +0530 [thread overview]
Message-ID: <20250622082910.13897-1-abhinav.ogl@gmail.com> (raw)
Use sysfs_emit() to format sysfs output instead of scnprintf() as recommended
by the kernel documentation.
Signed-off-by: Abhinav Ananthu <abhinav.ogl@gmail.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
next reply other threads:[~2025-06-22 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-22 8:29 Abhinav Ananthu [this message]
2025-08-13 14:39 ` Jens Wiklander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250622082910.13897-1-abhinav.ogl@gmail.com \
--to=abhinav.ogl@gmail.com \
--cc=jens.wiklander@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=op-tee@lists.trustedfirmware.org \
--cc=sumit.garg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®