From: Santosh Shilimkar Date: Wed, 4 Nov 2015 21:42:39 +0000 (-0800) Subject: RDS: log the IP address as well on bind failure X-Git-Tag: v4.1.12-92~175^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=20175bfd104b74d7986219404816208dbd838ea9;p=users%2Fjedix%2Flinux-maple.git RDS: log the IP address as well on bind failure It's useful to know the IP address when RDS fails to bind a connection. Thus, adding it to the error message. Orabug: 21894138 Reviewed-by: Wei Lin Guay Signed-off-by: Santosh Shilimkar --- diff --git a/net/rds/bind.c b/net/rds/bind.c index 676f25f3ae28..da29cdf6644b 100644 --- a/net/rds/bind.c +++ b/net/rds/bind.c @@ -214,8 +214,8 @@ int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) ret = -EADDRNOTAVAIL; rds_remove_bound(rs); if (printk_ratelimit()) - printk(KERN_INFO "RDS: rds_bind() could not find a transport, " - "load rds_tcp or rds_rdma?\n"); + printk(KERN_INFO "RDS: rds_bind() could not find a transport for %pI4, " + "load rds_tcp or rds_rdma?\n", &sin->sin_addr.s_addr); goto out; }