usb: wusbcore: add debug prints to reservation and channel change
authorThomas Pugliese <thomas.pugliese@gmail.com>
Fri, 20 Dec 2013 17:45:02 +0000 (11:45 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 20:06:46 +0000 (12:06 -0800)
This patch adds debug prints to the reservation and channel change
sequence to help with debugging channel change problems.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/pal.c
drivers/usb/wusbcore/reservation.c

index 59e100c2eb50d899d33cc0441a9a968d13354aae..090f27371a8f1cbe78a68911a3703b49b7306d94 100644 (file)
@@ -22,6 +22,7 @@ static void wusbhc_channel_changed(struct uwb_pal *pal, int channel)
 {
        struct wusbhc *wusbhc = container_of(pal, struct wusbhc, pal);
 
+       dev_dbg(wusbhc->dev, "%s: channel = %d\n", __func__, channel);
        if (channel < 0)
                wusbhc_stop(wusbhc);
        else
index ead79f7939275bb7c1c46f50bc568c3c2a6d8f33..d5efd0f07d2b9f5e836022a868a7bf3f25269638 100644 (file)
@@ -51,6 +51,7 @@ static void wusbhc_rsv_complete_cb(struct uwb_rsv *rsv)
        struct uwb_mas_bm mas;
        char buf[72];
 
+       dev_dbg(dev, "%s: state = %d\n", __func__, rsv->state);
        switch (rsv->state) {
        case UWB_RSV_STATE_O_ESTABLISHED:
                uwb_rsv_get_usable_mas(rsv, &mas);