diff options
author | Joe Perches <joe@perches.com> | 2014-11-11 22:37:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-12 00:11:00 +0100 |
commit | 6c91023dc35c88d5e6aebe4bfe6f1ed5ec2b84be (patch) | |
tree | 2f33e40962dd622ae926ff7e8284f3ef540d3ca9 /drivers/net/irda/mcp2120-sir.c | |
parent | net: kill netif_copy_real_num_queues() (diff) | |
download | linux-6c91023dc35c88d5e6aebe4bfe6f1ed5ec2b84be.tar.xz linux-6c91023dc35c88d5e6aebe4bfe6f1ed5ec2b84be.zip |
irda: Remove IRDA_<TYPE> logging macros
And use the more common mechanisms directly.
Other miscellanea:
o Coalesce formats
o Add missing newlines
o Realign arguments
o Remove unnecessary OOM message logging as
there's a generic stack dump already on OOM.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/mcp2120-sir.c')
-rw-r--r-- | drivers/net/irda/mcp2120-sir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/irda/mcp2120-sir.c b/drivers/net/irda/mcp2120-sir.c index 5e2f4859cee7..97674695211c 100644 --- a/drivers/net/irda/mcp2120-sir.c +++ b/drivers/net/irda/mcp2120-sir.c @@ -155,7 +155,8 @@ static int mcp2120_change_speed(struct sir_dev *dev, unsigned speed) break; default: - IRDA_ERROR("%s(), undefine state %d\n", __func__, state); + net_err_ratelimited("%s(), undefine state %d\n", + __func__, state); ret = -EINVAL; break; } @@ -213,7 +214,8 @@ static int mcp2120_reset(struct sir_dev *dev) break; default: - IRDA_ERROR("%s(), undefined state %d\n", __func__, state); + net_err_ratelimited("%s(), undefined state %d\n", + __func__, state); ret = -EINVAL; break; } |