diff options
author | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-10-16 08:56:53 -0400 |
---|---|---|
committer | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-10-16 08:56:53 -0400 |
commit | 8092d7c9789581eea478c40d615a2632c3af17bb (patch) | |
tree | a9fccedfcdbfd9a74220aa99d48fa8a003313deb /drivers/uwb/beacon.c | |
parent | 92c4d9bd1648b3eaca6b8b8f8932eec390ba7327 (diff) |
uwb: don't use printk_ratelimit() so often
Avoid using printk_ratelimit() in many places because:
- many were error messages reporting broken hardware (it's useful to
get all of these).
- the message itself wasn't useful so the message has been removed.
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/beacon.c')
-rw-r--r-- | drivers/uwb/beacon.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c index 1ccf9eb3e086..c7f3c972f07d 100644 --- a/drivers/uwb/beacon.c +++ b/drivers/uwb/beacon.c | |||
@@ -410,7 +410,6 @@ int uwbd_evt_handle_rc_beacon(struct uwb_event *evt) | |||
410 | struct uwb_rc_evt_beacon *be; | 410 | struct uwb_rc_evt_beacon *be; |
411 | struct uwb_beacon_frame *bf; | 411 | struct uwb_beacon_frame *bf; |
412 | struct uwb_beca_e *bce; | 412 | struct uwb_beca_e *bce; |
413 | struct device *dev = &evt->rc->uwb_dev.dev; | ||
414 | unsigned long last_ts; | 413 | unsigned long last_ts; |
415 | 414 | ||
416 | rc = evt->rc; | 415 | rc = evt->rc; |
@@ -419,14 +418,12 @@ int uwbd_evt_handle_rc_beacon(struct uwb_event *evt) | |||
419 | if (result < 0) | 418 | if (result < 0) |
420 | return result; | 419 | return result; |
421 | 420 | ||
422 | /* Ignore beacon if it is from an alien. */ | 421 | /* FIXME: handle alien beacons. */ |
423 | if (be->bBeaconType == UWB_RC_BEACON_TYPE_OL_ALIEN || | 422 | if (be->bBeaconType == UWB_RC_BEACON_TYPE_OL_ALIEN || |
424 | be->bBeaconType == UWB_RC_BEACON_TYPE_NOL_ALIEN) { | 423 | be->bBeaconType == UWB_RC_BEACON_TYPE_NOL_ALIEN) { |
425 | if (printk_ratelimit()) | 424 | return -ENOSYS; |
426 | dev_err(dev, "BEACON received from ALIEN. Action? \n"); | ||
427 | result = -ENOSYS; | ||
428 | return 0; | ||
429 | } | 425 | } |
426 | |||
430 | bf = (struct uwb_beacon_frame *) be->BeaconInfo; | 427 | bf = (struct uwb_beacon_frame *) be->BeaconInfo; |
431 | 428 | ||
432 | /* | 429 | /* |