rtl8xxxu: Dump contents of unhandled C2H events
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:05:40 +0000 (17:05 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:18 +0000 (15:29 +0200)
Dump the contents of unhandled C2H events. We should be handling all
expected events, so this is debugging help in case an unexpected event
happens.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c

index 3441361df9813e7781f7a79addbf642854187087..07f4ee0c7cad083df6661a00cea4c70f4bb06a90 100644 (file)
@@ -7446,7 +7446,10 @@ static void rtl8723bu_handle_c2h(struct rtl8xxxu_priv *priv,
                        c2h->bt_mp_info.ext_id, c2h->bt_mp_info.status);
                break;
        default:
-               dev_info(dev, "Unhandled C2H event %02x\n", c2h->id);
+               dev_info(dev, "Unhandled C2H event %02x seq %02x\n",
+                        c2h->id, c2h->seq);
+               print_hex_dump(KERN_INFO, "C2H content: ", DUMP_PREFIX_NONE,
+                              16, 1, c2h->raw.payload, len, false);
                break;
        }
 }
This page took 0.030765 seconds and 5 git commands to generate.