net: Treat sock->sk_drops as an unsigned int when printing
authorPatrick Talbert <ptalbert@redhat.com>
Fri, 17 May 2019 15:11:28 +0000 (17:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 May 2019 17:31:10 +0000 (10:31 -0700)
commitea9a03791a73e853897eda93e139018ca38f3c94
tree476ac5b8a6585480fcac43801f706ed35a2abc4d
parentc50a42b8f61f3492a0d3a1c7fb4932e19cf3e626
net: Treat sock->sk_drops as an unsigned int when printing

Currently, procfs socket stats format sk_drops as a signed int (%d). For large
values this will cause a negative number to be printed.

We know the drop count can never be a negative so change the format specifier to
%u.

Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c
net/ipv6/datagram.c
net/netlink/af_netlink.c
net/phonet/socket.c