aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/proc.c
diff options
context:
space:
mode:
authorFrancesco Fusco <ffusco@redhat.com>2013-08-15 07:42:14 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-15 17:37:46 -0400
commitd14c5ab6bef6a46170b84c3589b27768e979f93d (patch)
tree5bcf83fa3477c67ffa6f9486c1adade354ba8a22 /net/sctp/proc.c
parent40a82917b1d3a8aecedee6b64949795b75359731 (diff)
net: proc_fs: trivial: print UIDs as unsigned int
UIDs are printed in the proc_fs as signed int, whereas they are unsigned int. Signed-off-by: Francesco Fusco <ffusco@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/proc.c')
-rw-r--r--net/sctp/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c
index 82432bfb742f..0c0642156842 100644
--- a/net/sctp/proc.c
+++ b/net/sctp/proc.c
@@ -226,7 +226,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v)
226 sk = epb->sk; 226 sk = epb->sk;
227 if (!net_eq(sock_net(sk), seq_file_net(seq))) 227 if (!net_eq(sock_net(sk), seq_file_net(seq)))
228 continue; 228 continue;
229 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5d %5lu ", ep, sk, 229 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk,
230 sctp_sk(sk)->type, sk->sk_state, hash, 230 sctp_sk(sk)->type, sk->sk_state, hash,
231 epb->bind_addr.port, 231 epb->bind_addr.port,
232 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), 232 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)),
@@ -336,7 +336,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
336 continue; 336 continue;
337 seq_printf(seq, 337 seq_printf(seq,
338 "%8pK %8pK %-3d %-3d %-2d %-4d " 338 "%8pK %8pK %-3d %-3d %-2d %-4d "
339 "%4d %8d %8d %7d %5lu %-5d %5d ", 339 "%4d %8d %8d %7u %5lu %-5d %5d ",
340 assoc, sk, sctp_sk(sk)->type, sk->sk_state, 340 assoc, sk, sctp_sk(sk)->type, sk->sk_state,
341 assoc->state, hash, 341 assoc->state, hash,
342 assoc->assoc_id, 342 assoc->assoc_id,