mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
NFC: Dump LLCP frames
At KERN_DEBUG level. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
c8d56ae786
commit
4be646ecc9
@ -388,6 +388,9 @@ static void nfc_llcp_tx_work(struct work_struct *work)
|
|||||||
skb = skb_dequeue(&local->tx_queue);
|
skb = skb_dequeue(&local->tx_queue);
|
||||||
if (skb != NULL) {
|
if (skb != NULL) {
|
||||||
pr_debug("Sending pending skb\n");
|
pr_debug("Sending pending skb\n");
|
||||||
|
print_hex_dump(KERN_DEBUG, "LLCP Tx: ", DUMP_PREFIX_OFFSET,
|
||||||
|
16, 1, skb->data, skb->len, true);
|
||||||
|
|
||||||
nfc_data_exchange(local->dev, local->target_idx,
|
nfc_data_exchange(local->dev, local->target_idx,
|
||||||
skb, nfc_llcp_recv, local);
|
skb, nfc_llcp_recv, local);
|
||||||
} else {
|
} else {
|
||||||
@ -814,6 +817,10 @@ static void nfc_llcp_rx_work(struct work_struct *work)
|
|||||||
|
|
||||||
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)
|
||||||
|
print_hex_dump(KERN_DEBUG, "LLCP Rx: ", DUMP_PREFIX_OFFSET,
|
||||||
|
16, 1, skb->data, skb->len, true);
|
||||||
|
|
||||||
switch (ptype) {
|
switch (ptype) {
|
||||||
case LLCP_PDU_SYMM:
|
case LLCP_PDU_SYMM:
|
||||||
pr_debug("SYMM\n");
|
pr_debug("SYMM\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user