Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: lifebook - switch to use scnprintf() to suppress truncation warning

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

Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+2 -2
+2 -2
drivers/input/mouse/lifebook.c
··· 279 279 goto err_out; 280 280 281 281 priv->dev2 = dev2; 282 - snprintf(priv->phys, sizeof(priv->phys), 283 - "%s/input1", psmouse->ps2dev.serio->phys); 282 + scnprintf(priv->phys, sizeof(priv->phys), 283 + "%s/input1", psmouse->ps2dev.serio->phys); 284 284 285 285 dev2->phys = priv->phys; 286 286 dev2->name = "LBPS/2 Fujitsu Lifebook Touchpad";