mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[IRDA]: Ratelimit messages.
From: Joe Perches <[email protected]> Based upon a patch by Dave Jones. Signed-off-by: Dave Jones <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
75c0141ca2
commit
7a11c4d063
1 changed files with 3 additions and 3 deletions
|
|
@ -82,9 +82,9 @@ do { if(!(expr)) { \
|
|||
#define IRDA_ASSERT_LABEL(label)
|
||||
#endif /* CONFIG_IRDA_DEBUG */
|
||||
|
||||
#define IRDA_WARNING(args...) printk(KERN_WARNING args)
|
||||
#define IRDA_MESSAGE(args...) printk(KERN_INFO args)
|
||||
#define IRDA_ERROR(args...) printk(KERN_ERR args)
|
||||
#define IRDA_WARNING(args...) do { if (net_ratelimit()) printk(KERN_WARNING args); } while (0)
|
||||
#define IRDA_MESSAGE(args...) do { if (net_ratelimit()) printk(KERN_INFO args); } while (0)
|
||||
#define IRDA_ERROR(args...) do { if (net_ratelimit()) printk(KERN_ERR args); } while (0)
|
||||
|
||||
/*
|
||||
* Magic numbers used by Linux-IrDA. Random numbers which must be unique to
|
||||
|
|
|
|||
Loading…
Reference in a new issue