Re: [PATCH] net: Treat sock->sk_drops as an unsigned int when printing

2019-05-19 Thread David Miller
From: Patrick Talbert Date: Fri, 17 May 2019 17:11:28 +0200 > 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. >

[PATCH] net: Treat sock->sk_drops as an unsigned int when printing

2019-05-17 Thread Patrick Talbert
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 --- net/ipv4/ping.c | 2 +- net/ipv