lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 7 Jan 2021 10:47:34 +0800 From: Jiapeng Zhong <abaci-bugfix@...ux.alibaba.com> To: davem@...emloft.net Cc: kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org, kuba@...nel.org, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, Jiapeng Zhong <abaci-bugfix@...ux.alibaba.com> Subject: [PATCH] net/ipv6: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. The print format of this parameter does not match, because it is defined as int type, so modify the matching format of this parameter to %d format. Signed-off-by: Jiapeng Zhong <abaci-bugfix@...ux.alibaba.com> Reported-by: Abaci <abaci@...ux.alibaba.com> --- net/ipv6/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index d6306aa..26c702b 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c @@ -169,7 +169,7 @@ static void snmp6_seq_show_icmpv6msg(struct seq_file *seq, atomic_long_t *smib) val = atomic_long_read(smib + i); if (!val) continue; - snprintf(name, sizeof(name), "Icmp6%sType%u", + snprintf(name, sizeof(name), "Icmp6%sType%d", i & 0x100 ? "Out" : "In", i & 0xff); seq_printf(seq, "%-32s\t%lu\n", name, val); } -- 1.8.3.1
Powered by blists - more mailing lists