* Fwd: [PATCH] fsi: replace snprintf with sysfs_emit
[not found] <tencent_C55557552E8EDB1001D0B2D7629CDB0A0C0A@qq.com>
@ 2023-07-13 9:50 ` hanyu001
0 siblings, 0 replies; only message in thread
From: hanyu001 @ 2023-07-13 9:50 UTC (permalink / raw)
To: jk, joel, alistair, eajames; +Cc: linux-fsi, linux-kernel
coccinelle report:
./drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:
479:9-17: WARNING: use scnprintf or sprintf
./drivers/fsi/fsi-master-ast-cf.c:1086:8-16: WARNING: use scnprintf or
sprintf
Signed-off-by: ztt <1549089851@qq.com>
---
drivers/fsi/fsi-master-ast-cf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fsi/fsi-master-ast-cf.c
b/drivers/fsi/fsi-master-ast-cf.c
index 5f608ef8b53c..294ca962f569 100644
--- a/drivers/fsi/fsi-master-ast-cf.c
+++ b/drivers/fsi/fsi-master-ast-cf.c
@@ -1083,7 +1083,7 @@ static ssize_t external_mode_show(struct device
*dev,
{
struct fsi_master_acf *master = dev_get_drvdata(dev);
- return snprintf(buf, PAGE_SIZE - 1, "%u\n",
+ return scnprintf(buf, PAGE_SIZE - 1, "%u\n",
master->external_mode ? 1 : 0);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-13 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_C55557552E8EDB1001D0B2D7629CDB0A0C0A@qq.com>
2023-07-13 9:50 ` Fwd: [PATCH] fsi: replace snprintf with sysfs_emit hanyu001
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®