@@ -324,7 +324,8 @@ static void packet_sock_destruct(struct
WARN_ON(atomic_read(&sk->sk_wmem_alloc));
if (!sock_flag(sk, SOCK_DEAD)) {
- pr_err("Attempt to release alive packet socket: %p\n", sk);
+ pr_err("Attempt to release alive packet socket: %lu\n",
+ sock_i_ino(sk));
return;
}
@@ -2636,8 +2637,8 @@ static int packet_seq_show(struct seq_fi
const struct packet_sock *po = pkt_sk(s);
seq_printf(seq,
- "%p %-6d %-4d %04x %-5d %1d %-6u %-6u %-6lu\n",
- s,
+ "%d %-6d %-4d %04x %-5d %1d %-6u %-6u %-6lu\n",
+ 0,
atomic_read(&s->sk_refcnt),
s->sk_type,
ntohs(po->num),
Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html