Commit d65c4e4e authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

irda: Simplify IRDA logging macros

These are the same as net_<level>_ratelimited, so
use the more common style in the macro definition.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d7480fd3
...@@ -77,9 +77,9 @@ do { if(!(expr)) { \ ...@@ -77,9 +77,9 @@ do { if(!(expr)) { \
#define IRDA_ASSERT_LABEL(label) #define IRDA_ASSERT_LABEL(label)
#endif /* CONFIG_IRDA_DEBUG */ #endif /* CONFIG_IRDA_DEBUG */
#define IRDA_WARNING(args...) do { if (net_ratelimit()) printk(KERN_WARNING args); } while (0) #define IRDA_ERROR net_err_ratelimited
#define IRDA_MESSAGE(args...) do { if (net_ratelimit()) printk(KERN_INFO args); } while (0) #define IRDA_WARNING net_warn_ratelimited
#define IRDA_ERROR(args...) do { if (net_ratelimit()) printk(KERN_ERR args); } while (0) #define IRDA_MESSAGE net_info_ratelimited
/* /*
* Magic numbers used by Linux-IrDA. Random numbers which must be unique to * Magic numbers used by Linux-IrDA. Random numbers which must be unique to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment