From: Karsten Weiss Date: Fri, 29 Jun 2018 15:22:09 +0000 (+0200) Subject: LU-11112 lnet: improve error msg in lnet_sock_create() X-Git-Tag: 2.15.61~35 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=cc85942a6d501bababfb34b275f1b5613086d118;p=fs%2Flustre-release.git LU-11112 lnet: improve error msg in lnet_sock_create() The kernel_bind() call in lnet_sock_create() may fail due to problems with the local port, or the local IP address. Make sure to include both items when indicating a fatal error. Test-Parameters: trivial Signed-off-by: Karsten Weiss Signed-off-by: Daniel Kobras Signed-off-by: Chris Horn Change-Id: I43c1f089d3b12e61c18c97e532b6872a6c8cf272 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/32758 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/lib-socket.c b/lnet/lnet/lib-socket.c index 0404199..4d56448 100644 --- a/lnet/lnet/lib-socket.c +++ b/lnet/lnet/lib-socket.c @@ -303,8 +303,8 @@ retry: goto failed; } if (rc != 0) { - CERROR("Error trying to bind to port %d: %d\n", - local_port, rc); + CERROR("Error trying to bind to %pISc/%d: rc = %d\n", + &locaddr, local_port, rc); goto failed; } }