aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJeff LaBundy <[email protected]>2025-01-05 18:56:48 +0000
committerDmitry Torokhov <[email protected]>2025-06-04 04:39:35 +0000
commit1ac9aa41c6af7949a040f87cf1ed4bc4cac296bf (patch)
tree3a409224381990f7fbc817139710db5f197214de /scripts/bpf_doc.py
parentMerge branch 'next' into for-linus (diff)
downloadkernel-1ac9aa41c6af7949a040f87cf1ed4bc4cac296bf.tar.gz
kernel-1ac9aa41c6af7949a040f87cf1ed4bc4cac296bf.zip
Input: iqs626a - replace snprintf() with scnprintf()
W=1 builds warn that the data written to 'tc_name' is truncated for theoretical strings such as "channel-2147483646". Solve this problem by replacing snprintf() with scnprintf() so that the return value corresponds to what was actually written. In practice, the largest string that will be written is "channel-8", and the return value is not actually evaluated. Instead, this patch ultimately removes the warning without unnecessarily increasing the size of 'tc_name' from 10 bytes. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Jeff LaBundy <[email protected]> Link: https://lore.kernel.org/r/Z3rV8GTHxLyjBQ5I@nixie71 Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions