[<prev] [next>] [day] [month] [year] [list]
Message-ID: <465bfbd0726d1f24d1684fa5dc97cc9c@208suo.com>
Date: Thu, 13 Jul 2023 17:50:34 +0800
From: hanyu001@...suo.com
To: jk@...abs.org, joel@....id.au, alistair@...ple.id.au,
eajames@...ux.ibm.com
Cc: linux-fsi@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Fwd: [PATCH] fsi: replace snprintf with sysfs_emit
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@...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);
}
Powered by blists - more mailing lists