Skip to content

Commit

Permalink
NFC: Dump LLCP frames
Browse files Browse the repository at this point in the history
At KERN_DEBUG level.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Samuel Ortiz authored and John W. Linville committed Apr 12, 2012
1 parent c8d56ae commit 4be646e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ static void nfc_llcp_tx_work(struct work_struct *work)
skb = skb_dequeue(&local->tx_queue);
if (skb != NULL) {
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,
skb, nfc_llcp_recv, local);
} else {
Expand Down Expand Up @@ -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);

if (ptype != LLCP_PDU_SYMM)
print_hex_dump(KERN_DEBUG, "LLCP Rx: ", DUMP_PREFIX_OFFSET,
16, 1, skb->data, skb->len, true);

switch (ptype) {
case LLCP_PDU_SYMM:
pr_debug("SYMM\n");
Expand Down

0 comments on commit 4be646e

Please sign in to comment.