mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
net/rds: use prink_ratelimited() instead of printk_ratelimit()
Since printk_ratelimit() shouldn't be used anymore (see comment in include/linux/printk.h), replace it with printk_ratelimited() Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de> Signed-off-by: David S. Miller <davem@conan.davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d751e62396
commit
cb0a605649
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user