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

drivers/usb/atm: 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
bf929b3b 9708cd2f

+2 -2
+2 -2
drivers/usb/atm/usbatm.c
··· 81 81 #include <linux/timer.h> 82 82 #include <linux/wait.h> 83 83 #include <linux/kthread.h> 84 + #include <linux/ratelimit.h> 84 85 85 86 #ifdef VERBOSE_DEBUG 86 87 static int usbatm_print_packet(const unsigned char *data, int len); ··· 669 668 /* racy disconnection check - fine */ 670 669 if (!instance || instance->disconnected) { 671 670 #ifdef DEBUG 672 - if (printk_ratelimit()) 673 - printk(KERN_DEBUG "%s: %s!\n", __func__, instance ? "disconnected" : "NULL instance"); 671 + printk_ratelimited(KERN_DEBUG "%s: %s!\n", __func__, instance ? "disconnected" : "NULL instance"); 674 672 #endif 675 673 err = -ENODEV; 676 674 goto fail;