public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] Input: dynapro - switch to use scnprintf() to suppress truncation warning
@ 2026-01-13  8:28 Andy Shevchenko
  2026-01-20 20:19 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2026-01-13  8:28 UTC (permalink / raw)
  To: Andy Shevchenko, linux-input, linux-kernel; +Cc: Dmitry Torokhov

Switch the driver to use scnprintf() to avoid warnings about potential
truncation of "phys" field which we can tolerate.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/input/touchscreen/dynapro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/dynapro.c b/drivers/input/touchscreen/dynapro.c
index fe626a226b85..00d18823a059 100644
--- a/drivers/input/touchscreen/dynapro.c
+++ b/drivers/input/touchscreen/dynapro.c
@@ -119,7 +119,7 @@ static int dynapro_connect(struct serio *serio, struct serio_driver *drv)
 
 	pdynapro->serio = serio;
 	pdynapro->dev = input_dev;
-	snprintf(pdynapro->phys, sizeof(pdynapro->phys),
+	scnprintf(pdynapro->phys, sizeof(pdynapro->phys),
 		 "%s/input0", serio->phys);
 
 	input_dev->name = "Dynapro Serial TouchScreen";
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-20 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-13  8:28 [PATCH v1 1/1] Input: dynapro - switch to use scnprintf() to suppress truncation warning Andy Shevchenko
2026-01-20 20:19 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox