Commit 0a8a1621 authored by Pavel Emelyanov's avatar Pavel Emelyanov

unix: Increase verbosity of "can't dump this socket" check

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fa73b3e7
...@@ -98,7 +98,9 @@ static int can_dump_unix_sk(const struct unix_sk_desc *sk) ...@@ -98,7 +98,9 @@ static int can_dump_unix_sk(const struct unix_sk_desc *sk)
if (sk->type != SOCK_STREAM && if (sk->type != SOCK_STREAM &&
sk->type != SOCK_DGRAM && sk->type != SOCK_DGRAM &&
sk->type != SOCK_SEQPACKET) { sk->type != SOCK_SEQPACKET) {
pr_err("Only stream/dgram/seqpacket sockets for now\n"); pr_err("Unsupported type (%d) on socket %x.\n"
"Only stream/dgram/seqpacket are supported.\n",
sk->type, sk->sd.ino);
return 0; return 0;
} }
...@@ -108,7 +110,8 @@ static int can_dump_unix_sk(const struct unix_sk_desc *sk) ...@@ -108,7 +110,8 @@ static int can_dump_unix_sk(const struct unix_sk_desc *sk)
case TCP_CLOSE: case TCP_CLOSE:
break; break;
default: default:
pr_err("Unknown state %d\n", sk->state); pr_err("Unknown state %d for unix socket %x\n",
sk->state, sk->sd.ino);
return 0; return 0;
} }
......
Markdown is supported
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