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
@@ -34,6 +34,7 @@
|
||||
#include <linux/in.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/dmapool.h>
|
||||
#include <linux/ratelimit.h>
|
||||
|
||||
#include "rds.h"
|
||||
#include "iw.h"
|
||||
@@ -258,8 +259,7 @@ void rds_iw_send_cq_comp_handler(struct ib_cq *cq, void *context)
|
||||
* when the SEND completes. */
|
||||
break;
|
||||
default:
|
||||
if (printk_ratelimit())
|
||||
printk(KERN_NOTICE
|
||||
printk_ratelimited(KERN_NOTICE
|
||||
"RDS/IW: %s: unexpected opcode 0x%x in WR!\n",
|
||||
__func__, send->s_wr.opcode);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user