../drivers/input/joystick/sidewinder.c: In function ‘sw_connect’: ../drivers/input/joystick/sidewinder.c:538:58: warning: ‘%s’ directive output may be truncated writing up to 8 bytes into a region of size between 5 and 21 [-Wformat-truncation=] 538 | snprintf(comment, size, " [PnP %d.%02d id %s rev %s]", | ^~ ...... 543 | pnp, rev); | ~~~ In function ‘sw_3dp_id’, inlined from ‘sw_connect’ at ../drivers/input/joystick/sidewinder.c:694:7: ../drivers/input/joystick/sidewinder.c:538:9: note: ‘snprintf’ output between 21 and 45 bytes into a destination of size 40 538 | snprintf(comment, size, " [PnP %d.%02d id %s rev %s]", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 539 | (int) ((sw_get_bits(buf, 8, 6, 1) << 6) | /* Two 6-bit values */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 540 | sw_get_bits(buf, 16, 6, 1)) / 100, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 541 | (int) ((sw_get_bits(buf, 8, 6, 1) << 6) | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 542 | sw_get_bits(buf, 16, 6, 1)) % 100, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 543 | pnp, rev); | ~~~~~~~~~ ../drivers/input/joystick/sidewinder.c: In function ‘sw_connect’: ../drivers/input/joystick/sidewinder.c:727:29: warning: ‘/input’ directive output may be truncated writing 6 bytes into a region of size between 1 and 32 [-Wformat-truncation=] 727 | "%s/input%d", gameport->phys, i); | ^~~~~~ ../drivers/input/joystick/sidewinder.c:727:26: note: directive argument in the range [-2147483641, 2147483646] 727 | "%s/input%d", gameport->phys, i); | ^~~~~~~~~~~~ ../drivers/input/joystick/sidewinder.c:726:17: note: ‘snprintf’ output between 8 and 49 bytes into a destination of size 32 726 | snprintf(sw->phys[i], sizeof(sw->phys[i]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 727 | "%s/input%d", gameport->phys, i); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/input/joystick/sidewinder.c: In function ‘sw_connect’: ../drivers/input/joystick/sidewinder.c:524:58: warning: ‘%s’ directive output may be truncated writing up to 8 bytes into a region of size between 5 and 21 [-Wformat-truncation=] 524 | snprintf(comment, size, " [PnP %d.%02d id %s rev %s]", | ^~ ...... 529 | pnp, rev); | ~~~ In function ‘sw_3dp_id’, inlined from ‘sw_connect’ at ../drivers/input/joystick/sidewinder.c:680:7: ../drivers/input/joystick/sidewinder.c:524:9: note: ‘snprintf’ output between 21 and 45 bytes into a destination of size 40 524 | snprintf(comment, size, " [PnP %d.%02d id %s rev %s]", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 525 | (int) ((sw_get_bits(buf, 8, 6, 1) << 6) | /* Two 6-bit values */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 526 | sw_get_bits(buf, 16, 6, 1)) / 100, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 527 | (int) ((sw_get_bits(buf, 8, 6, 1) << 6) | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 528 | sw_get_bits(buf, 16, 6, 1)) % 100, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 529 | pnp, rev); | ~~~~~~~~~ ../drivers/input/joystick/sidewinder.c: In function ‘sw_connect’: ../drivers/input/joystick/sidewinder.c:713:29: warning: ‘/input’ directive output may be truncated writing 6 bytes into a region of size between 1 and 32 [-Wformat-truncation=] 713 | "%s/input%d", gameport->phys, i); | ^~~~~~ ../drivers/input/joystick/sidewinder.c:713:26: note: directive argument in the range [-2147483641, 2147483646] 713 | "%s/input%d", gameport->phys, i); | ^~~~~~~~~~~~ ../drivers/input/joystick/sidewinder.c:712:17: note: ‘snprintf’ output between 8 and 49 bytes into a destination of size 32 712 | snprintf(sw->phys[i], sizeof(sw->phys[i]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 713 | "%s/input%d", gameport->phys, i); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~