aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/irda
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-11-11 16:13:41 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-11 16:21:59 -0500
commitd65c4e4e0aeb699e984bd4b382efffab418aa359 (patch)
tree6ace7479dbc10f5e4d33b7c4909ba93e55d44690 /include/net/irda
parentd7480fd3b1738a8eae6a76098b17af318cf9b9cc (diff)
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: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/irda')
-rw-r--r--include/net/irda/irda.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/irda/irda.h b/include/net/irda/irda.h
index a059465101ff..42aa054aa67f 100644
--- a/include/net/irda/irda.h
+++ b/include/net/irda/irda.h
@@ -77,9 +77,9 @@ do { if(!(expr)) { \
77#define IRDA_ASSERT_LABEL(label) 77#define IRDA_ASSERT_LABEL(label)
78#endif /* CONFIG_IRDA_DEBUG */ 78#endif /* CONFIG_IRDA_DEBUG */
79 79
80#define IRDA_WARNING(args...) do { if (net_ratelimit()) printk(KERN_WARNING args); } while (0) 80#define IRDA_ERROR net_err_ratelimited
81#define IRDA_MESSAGE(args...) do { if (net_ratelimit()) printk(KERN_INFO args); } while (0) 81#define IRDA_WARNING net_warn_ratelimited
82#define IRDA_ERROR(args...) do { if (net_ratelimit()) printk(KERN_ERR args); } while (0) 82#define IRDA_MESSAGE net_info_ratelimited
83 83
84/* 84/*
85 * Magic numbers used by Linux-IrDA. Random numbers which must be unique to 85 * Magic numbers used by Linux-IrDA. Random numbers which must be unique to