Commit f79833a7ab44fd7ce4db47c65c929747463a452d

Authored by Thomas Pugliese
Committed by Greg Kroah-Hartman
1 parent b4a9dfb02d

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>

Showing 2 changed files with 6 additions and 1 deletions Side-by-side Diff

drivers/uwb/beacon.c
... ... @@ -117,6 +117,7 @@
117 117 int result;
118 118 struct device *dev = &rc->uwb_dev.dev;
119 119  
  120 + dev_dbg(dev, "%s: channel = %d\n", __func__, channel);
120 121 if (channel < 0)
121 122 channel = -1;
122 123 if (channel == -1)
... ... @@ -517,7 +518,7 @@
517 518  
518 519 mutex_lock(&rc->uwb_dev.mutex);
519 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 522 rc->beaconing = -1;
522 523 } else
523 524 rc->uwb_dev.beacon_slot = uwb_rc_evt_bp_slot_change_slot_num(bpsc);
... ... @@ -62,6 +62,10 @@
62 62 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel)
63 63 {
64 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 70 if (channel == -1)
67 71 uwb_radio_channel_changed(rc, channel);