NFC: llcp: Use dynamic debug for hex dump
authorThierry Escande <thierry.escande@collabora.com>
Tue, 7 Jun 2016 14:21:53 +0000 (16:21 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Jul 2016 10:26:27 +0000 (12:26 +0200)
LLCP skb tx and rx functions now use print_hex_dump_debug() making
these verbose traces controllable using dynamic debug.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp_core.c

index 98876274a1eea22b709403dde2c5702b1387a0be..e69786c6804cdf83cd5b758bad3985afacb1a4b2 100644 (file)
@@ -732,9 +732,8 @@ static void nfc_llcp_tx_work(struct work_struct *work)
                        int ret;
 
                        pr_debug("Sending pending skb\n");
-                       print_hex_dump(KERN_DEBUG, "LLCP Tx: ",
-                                      DUMP_PREFIX_OFFSET, 16, 1,
-                                      skb->data, skb->len, true);
+                       print_hex_dump_debug("LLCP Tx: ", DUMP_PREFIX_OFFSET,
+                                            16, 1, skb->data, skb->len, true);
 
                        if (ptype == LLCP_PDU_DISC && sk != NULL &&
                            sk->sk_state == LLCP_DISCONNECTING) {
@@ -1412,8 +1411,8 @@ static void nfc_llcp_rx_skb(struct nfc_llcp_local *local, struct sk_buff *skb)
        pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap);
 
        if (ptype != LLCP_PDU_SYMM)
-               print_hex_dump(KERN_DEBUG, "LLCP Rx: ", DUMP_PREFIX_OFFSET,
-                              16, 1, skb->data, skb->len, true);
+               print_hex_dump_debug("LLCP Rx: ", DUMP_PREFIX_OFFSET, 16, 1,
+                                    skb->data, skb->len, true);
 
        switch (ptype) {
        case LLCP_PDU_SYMM: