diff options
author | Joe Perches <joe@perches.com> | 2014-11-11 16:37:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-11 18:11:00 -0500 |
commit | 6c91023dc35c88d5e6aebe4bfe6f1ed5ec2b84be (patch) | |
tree | 2f33e40962dd622ae926ff7e8284f3ef540d3ca9 /drivers/net/irda/girbil-sir.c | |
parent | 09626e9d153326ca82568e4e27f2daa53713992e (diff) |
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/girbil-sir.c')
-rw-r--r-- | drivers/net/irda/girbil-sir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/irda/girbil-sir.c b/drivers/net/irda/girbil-sir.c index 96cdecff349d..f0512ad7dae7 100644 --- a/drivers/net/irda/girbil-sir.c +++ b/drivers/net/irda/girbil-sir.c | |||
@@ -179,7 +179,8 @@ static int girbil_change_speed(struct sir_dev *dev, unsigned speed) | |||
179 | break; | 179 | break; |
180 | 180 | ||
181 | default: | 181 | default: |
182 | IRDA_ERROR("%s - undefined state %d\n", __func__, state); | 182 | net_err_ratelimited("%s - undefined state %d\n", |
183 | __func__, state); | ||
183 | ret = -EINVAL; | 184 | ret = -EINVAL; |
184 | break; | 185 | break; |
185 | } | 186 | } |
@@ -241,7 +242,8 @@ static int girbil_reset(struct sir_dev *dev) | |||
241 | break; | 242 | break; |
242 | 243 | ||
243 | default: | 244 | default: |
244 | IRDA_ERROR("%s(), undefined state %d\n", __func__, state); | 245 | net_err_ratelimited("%s(), undefined state %d\n", |
246 | __func__, state); | ||
245 | ret = -1; | 247 | ret = -1; |
246 | break; | 248 | break; |
247 | } | 249 | } |