mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c50a42b8f6
commit
ea9a03791a
6 changed files with 6 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue