Skip to content
Commit ea9a0379 authored by Patrick Talbert's avatar Patrick Talbert Committed by David S. Miller
Browse files

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: default avatarPatrick Talbert <ptalbert@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c50a42b8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment