]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/rds/bind.c
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
[mv-sheeva.git] / net / rds / bind.c
index 2f6b3fcc79f81b9985ca5774a7fa3e070a105d11..637bde56c9db2f346ee6a4b79e86e9c8ba7e740c 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/in.h>
 #include <linux/if_arp.h>
 #include <linux/jhash.h>
+#include <linux/ratelimit.h>
 #include "rds.h"
 
 #define BIND_HASH_SIZE 1024
@@ -185,8 +186,7 @@ int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
        if (!trans) {
                ret = -EADDRNOTAVAIL;
                rds_remove_bound(rs);
-               if (printk_ratelimit())
-                       printk(KERN_INFO "RDS: rds_bind() could not find a transport, "
+               printk_ratelimited(KERN_INFO "RDS: rds_bind() could not find a transport, "
                                "load rds_tcp or rds_rdma?\n");
                goto out;
        }