Skip to content

Commit

Permalink
sk-unix: Log both peer names when failing on an external stream unix …
Browse files Browse the repository at this point in the history
…socket.

Make debugging dump failures resulting in "sk unix: Can't dump half
of stream unix connection" errors easier.

Signed-off-by: Michał Mirosław <[email protected]>
  • Loading branch information
osctobe authored and avagin committed Jul 7, 2023
1 parent b42e7af commit cf01c32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion criu/sk-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,8 @@ static int __dump_external_socket(struct unix_sk_desc *sk, struct unix_sk_desc *

if (peer->type != SOCK_DGRAM) {
show_one_unix("Ext stream not supported", peer);
pr_err("Can't dump half of stream unix connection.\n");
pr_err("Can't dump half of stream unix connection. name: %s; peer name: %s\n",
sk->name, peer->name);
return -1;
}

Expand Down

0 comments on commit cf01c32

Please sign in to comment.