Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wusb: use printk_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: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Manuel Zerpies and committed by
Greg Kroah-Hartman
9708cd2f 305e7be5

+3 -4
+3 -4
drivers/usb/wusbcore/wa-xfer.c
··· 83 83 #include <linux/spinlock.h> 84 84 #include <linux/slab.h> 85 85 #include <linux/hash.h> 86 + #include <linux/ratelimit.h> 86 87 87 88 #include "wa-hc.h" 88 89 #include "wusbhc.h" ··· 1218 1217 if (status == 0) 1219 1218 return 0; 1220 1219 if (status >= ARRAY_SIZE(xlat)) { 1221 - if (printk_ratelimit()) 1222 - printk(KERN_ERR "%s(): BUG? " 1220 + printk_ratelimited(KERN_ERR "%s(): BUG? " 1223 1221 "Unknown WA transfer status 0x%02x\n", 1224 1222 __func__, real_status); 1225 1223 return -EINVAL; 1226 1224 } 1227 1225 errno = xlat[status]; 1228 1226 if (unlikely(errno > 0)) { 1229 - if (printk_ratelimit()) 1230 - printk(KERN_ERR "%s(): BUG? " 1227 + printk_ratelimited(KERN_ERR "%s(): BUG? " 1231 1228 "Inconsistent WA status: 0x%02x\n", 1232 1229 __func__, real_status); 1233 1230 errno = -errno;