Commit 806bfe31 authored by Thierry Escande's avatar Thierry Escande Committed by Samuel Ortiz

NFC: llcp: Use dynamic debug for hex dump

LLCP skb tx and rx functions now use print_hex_dump_debug() making
these verbose traces controllable using dynamic debug.
Signed-off-by: default avatarThierry Escande <thierry.escande@collabora.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 7854a445
...@@ -732,9 +732,8 @@ static void nfc_llcp_tx_work(struct work_struct *work) ...@@ -732,9 +732,8 @@ static void nfc_llcp_tx_work(struct work_struct *work)
int ret; int ret;
pr_debug("Sending pending skb\n"); pr_debug("Sending pending skb\n");
print_hex_dump(KERN_DEBUG, "LLCP Tx: ", print_hex_dump_debug("LLCP Tx: ", DUMP_PREFIX_OFFSET,
DUMP_PREFIX_OFFSET, 16, 1, 16, 1, skb->data, skb->len, true);
skb->data, skb->len, true);
if (ptype == LLCP_PDU_DISC && sk != NULL && if (ptype == LLCP_PDU_DISC && sk != NULL &&
sk->sk_state == LLCP_DISCONNECTING) { sk->sk_state == LLCP_DISCONNECTING) {
...@@ -1412,8 +1411,8 @@ static void nfc_llcp_rx_skb(struct nfc_llcp_local *local, struct sk_buff *skb) ...@@ -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); pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap);
if (ptype != LLCP_PDU_SYMM) if (ptype != LLCP_PDU_SYMM)
print_hex_dump(KERN_DEBUG, "LLCP Rx: ", DUMP_PREFIX_OFFSET, print_hex_dump_debug("LLCP Rx: ", DUMP_PREFIX_OFFSET, 16, 1,
16, 1, skb->data, skb->len, true); skb->data, skb->len, true);
switch (ptype) { switch (ptype) {
case LLCP_PDU_SYMM: case LLCP_PDU_SYMM:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment