diff options
author | Patrick Talbert <ptalbert@redhat.com> | 2019-05-17 17:11:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-19 10:31:10 -0700 |
commit | ea9a03791a73e853897eda93e139018ca38f3c94 (patch) | |
tree | 476ac5b8a6585480fcac43801f706ed35a2abc4d /net/phonet/socket.c | |
parent | c50a42b8f61f3492a0d3a1c7fb4932e19cf3e626 (diff) | |
download | linux-rpi-ea9a03791a73e853897eda93e139018ca38f3c94.tar.gz linux-rpi-ea9a03791a73e853897eda93e139018ca38f3c94.tar.bz2 linux-rpi-ea9a03791a73e853897eda93e139018ca38f3c94.zip |
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>
Diffstat (limited to 'net/phonet/socket.c')
-rw-r--r-- | net/phonet/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 30187990257f..2567af2fbd6f 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -607,7 +607,7 @@ static int pn_sock_seq_show(struct seq_file *seq, void *v) struct pn_sock *pn = pn_sk(sk); seq_printf(seq, "%2d %04X:%04X:%02X %02X %08X:%08X %5d %lu " - "%d %pK %d", + "%d %pK %u", sk->sk_protocol, pn->sobject, pn->dobject, pn->resource, sk->sk_state, sk_wmem_alloc_get(sk), sk_rmem_alloc_get(sk), |