summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorKalle Valo <quic_kvalo@quicinc.com>2023-10-10 09:22:50 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2023-10-12 19:04:24 +0300
commita47111663491ff2829df0626493ce81b48dd880a (patch)
treee8b48592ca1d963691e194db261e3f9e3f460d7c /scripts/gdb/linux/utils.py
parent13556aef0bdc0e98df7b6bf2e10d706c59dce6f4 (diff)
wifi: ath11k: ath11k_debugfs_register(): fix format-truncation warning
In v6.6-rc4 with GCC 13.2 I see a new warning: drivers/net/wireless/ath/ath11k/debugfs.c: In function 'ath11k_debugfs_register': drivers/net/wireless/ath/ath11k/debugfs.c:1597:51: error: '%d' directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Werror=format-truncation=] drivers/net/wireless/ath/ath11k/debugfs.c:1597:48: note: directive argument in the range [0, 255] drivers/net/wireless/ath/ath11k/debugfs.c:1597:9: note: 'snprintf' output between 5 and 7 bytes into a destination of size 5 Increase the size of pdev_name to 10 bytes to make sure there's enough room for the string. Also change the format to '%u' as ar->pdev_idx is u8. Compile tested only. Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20231010062250.2580951-1-kvalo@kernel.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions