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

Configure Feed

Select the types of activity you want to include in your feed.

Input: atkbd - 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/keyboard/atkbd.c
··· 1191 1191 "AT %s Set %d keyboard", 1192 1192 atkbd->translated ? "Translated" : "Raw", atkbd->set); 1193 1193 1194 - snprintf(atkbd->phys, sizeof(atkbd->phys), 1195 - "%s/input0", atkbd->ps2dev.serio->phys); 1194 + scnprintf(atkbd->phys, sizeof(atkbd->phys), 1195 + "%s/input0", atkbd->ps2dev.serio->phys); 1196 1196 1197 1197 input_dev->name = atkbd->name; 1198 1198 input_dev->phys = atkbd->phys;