From cc85942a6d501bababfb34b275f1b5613086d118 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Fri, 29 Jun 2018 17:22:09 +0200 Subject: [PATCH] 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 --- lnet/lnet/lib-socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 1.8.3.1