Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Thierry Escande and committed by
Samuel Ortiz
806bfe31 7854a445

+4 -5
+4 -5
net/nfc/llcp_core.c
··· 732 732 int ret; 733 733 734 734 pr_debug("Sending pending skb\n"); 735 - print_hex_dump(KERN_DEBUG, "LLCP Tx: ", 736 - DUMP_PREFIX_OFFSET, 16, 1, 737 - skb->data, skb->len, true); 735 + print_hex_dump_debug("LLCP Tx: ", DUMP_PREFIX_OFFSET, 736 + 16, 1, skb->data, skb->len, true); 738 737 739 738 if (ptype == LLCP_PDU_DISC && sk != NULL && 740 739 sk->sk_state == LLCP_DISCONNECTING) { ··· 1411 1412 pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap); 1412 1413 1413 1414 if (ptype != LLCP_PDU_SYMM) 1414 - print_hex_dump(KERN_DEBUG, "LLCP Rx: ", DUMP_PREFIX_OFFSET, 1415 - 16, 1, skb->data, skb->len, true); 1415 + print_hex_dump_debug("LLCP Rx: ", DUMP_PREFIX_OFFSET, 16, 1, 1416 + skb->data, skb->len, true); 1416 1417 1417 1418 switch (ptype) { 1418 1419 case LLCP_PDU_SYMM: