diff options
| author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2013-12-20 12:54:07 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 15:19:13 -0500 |
| commit | f79833a7ab44fd7ce4db47c65c929747463a452d (patch) | |
| tree | 9b2902cad83cd0caf282506f0b1ed8de8f66603b /drivers/uwb | |
| parent | b4a9dfb02d932acd8a55ee96575e90f999a482de (diff) | |
uwb: add debug prints during channel change and beacon actions
Add debug prints during channel change and beacon actions.
Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb')
| -rw-r--r-- | drivers/uwb/beacon.c | 3 | ||||
| -rw-r--r-- | drivers/uwb/radio.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c index dcdd59bfcd09..7b763610ce75 100644 --- a/drivers/uwb/beacon.c +++ b/drivers/uwb/beacon.c | |||
| @@ -117,6 +117,7 @@ int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset) | |||
| 117 | int result; | 117 | int result; |
| 118 | struct device *dev = &rc->uwb_dev.dev; | 118 | struct device *dev = &rc->uwb_dev.dev; |
| 119 | 119 | ||
| 120 | dev_dbg(dev, "%s: channel = %d\n", __func__, channel); | ||
| 120 | if (channel < 0) | 121 | if (channel < 0) |
| 121 | channel = -1; | 122 | channel = -1; |
| 122 | if (channel == -1) | 123 | if (channel == -1) |
| @@ -517,7 +518,7 @@ int uwbd_evt_handle_rc_bp_slot_change(struct uwb_event *evt) | |||
| 517 | 518 | ||
| 518 | mutex_lock(&rc->uwb_dev.mutex); | 519 | mutex_lock(&rc->uwb_dev.mutex); |
| 519 | if (uwb_rc_evt_bp_slot_change_no_slot(bpsc)) { | 520 | if (uwb_rc_evt_bp_slot_change_no_slot(bpsc)) { |
| 520 | dev_info(dev, "stopped beaconing: No free slots in BP\n"); | 521 | dev_err(dev, "stopped beaconing: No free slots in BP\n"); |
| 521 | rc->beaconing = -1; | 522 | rc->beaconing = -1; |
| 522 | } else | 523 | } else |
| 523 | rc->uwb_dev.beacon_slot = uwb_rc_evt_bp_slot_change_slot_num(bpsc); | 524 | rc->uwb_dev.beacon_slot = uwb_rc_evt_bp_slot_change_slot_num(bpsc); |
diff --git a/drivers/uwb/radio.c b/drivers/uwb/radio.c index d58dfecf9a79..10adb9800999 100644 --- a/drivers/uwb/radio.c +++ b/drivers/uwb/radio.c | |||
| @@ -62,6 +62,10 @@ static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) | |||
| 62 | static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) | 62 | static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) |
| 63 | { | 63 | { |
| 64 | int ret = 0; | 64 | int ret = 0; |
| 65 | struct device *dev = &rc->uwb_dev.dev; | ||
| 66 | |||
| 67 | dev_dbg(dev, "%s: channel = %d, rc->beaconing = %d\n", __func__, | ||
| 68 | channel, rc->beaconing); | ||
| 65 | 69 | ||
| 66 | if (channel == -1) | 70 | if (channel == -1) |
| 67 | uwb_radio_channel_changed(rc, channel); | 71 | uwb_radio_channel_changed(rc, channel); |
