From f79833a7ab44fd7ce4db47c65c929747463a452d Mon Sep 17 00:00:00 2001 From: Thomas Pugliese Date: Fri, 20 Dec 2013 11:54:07 -0600 Subject: uwb: add debug prints during channel change and beacon actions Add debug prints during channel change and beacon actions. Signed-off-by: Thomas Pugliese Signed-off-by: Greg Kroah-Hartman --- drivers/uwb/radio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/uwb/radio.c') diff --git a/drivers/uwb/radio.c b/drivers/uwb/radio.c index d58dfec..10adb98 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) static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) { int ret = 0; + struct device *dev = &rc->uwb_dev.dev; + + dev_dbg(dev, "%s: channel = %d, rc->beaconing = %d\n", __func__, + channel, rc->beaconing); if (channel == -1) uwb_radio_channel_changed(rc, channel); -- cgit v1.1 From 67d0fb2592acdd7cc41129279de2e520d53d68f0 Mon Sep 17 00:00:00 2001 From: Thomas Pugliese Date: Fri, 20 Dec 2013 11:54:08 -0600 Subject: uwb: whitespace and comment cleanups various whitespace and comment cleanups Signed-off-by: Thomas Pugliese Signed-off-by: Greg Kroah-Hartman --- drivers/uwb/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/uwb/radio.c') diff --git a/drivers/uwb/radio.c b/drivers/uwb/radio.c index 10adb98..fd23d98 100644 --- a/drivers/uwb/radio.c +++ b/drivers/uwb/radio.c @@ -93,7 +93,7 @@ static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) * uwb_radio_start - request that the radio be started * @pal: the PAL making the request. * - * If the radio is not already active, aa suitable channel is selected + * If the radio is not already active, a suitable channel is selected * and beacons are started. */ int uwb_radio_start(struct uwb_pal *pal) -- cgit v1.1