RDS: log the address on bind failure
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 4 Nov 2015 21:42:39 +0000 (13:42 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 2 Jan 2017 22:02:39 +0000 (14:02 -0800)
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 <wei.lin.guay@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/bind.c

index 095f6ce583fee33eee431dc88e04a26c01db2d4d..3a915bedb76c52995fdf5c09fa747f3a236a169b 100644 (file)
@@ -176,8 +176,8 @@ int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
        if (!trans) {
                ret = -EADDRNOTAVAIL;
                rds_remove_bound(rs);
-               printk_ratelimited(KERN_INFO "RDS: rds_bind() could not find a transport, "
-                               "load rds_tcp or rds_rdma?\n");
+               pr_info_ratelimited("RDS: %s could not find a transport for %pI4, load rds_tcp or rds_rdma?\n",
+                                   __func__, &sin->sin_addr.s_addr);
                goto out;
        }