aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-03-20 06:27:57 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-11 10:28:56 -0400
commite279f84f304d5486291a2d6465105dc6f96cc8ca (patch)
treea94109b8527e29ab3315491bee74a4e828c8e65e /drivers/nfc
parentfe29f54cd574eab7b521445419f355c0ecd995cc (diff)
NFC: pn533: Use dynamic debug for pn533 hex dumps
Those can be very verbose and we only want them when debugging pn533. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/pn533.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c
index f0f6763d67ae..73d39f3fbdf9 100644
--- a/drivers/nfc/pn533.c
+++ b/drivers/nfc/pn533.c
@@ -543,8 +543,8 @@ static void pn533_recv_response(struct urb *urb)
543 in_frame = dev->in_urb->transfer_buffer; 543 in_frame = dev->in_urb->transfer_buffer;
544 544
545 nfc_dev_dbg(&dev->interface->dev, "Received a frame."); 545 nfc_dev_dbg(&dev->interface->dev, "Received a frame.");
546 print_hex_dump(KERN_DEBUG, "PN533 RX: ", DUMP_PREFIX_NONE, 16, 1, 546 print_hex_dump_debug("PN533 RX: ", DUMP_PREFIX_NONE, 16, 1, in_frame,
547 in_frame, dev->ops->rx_frame_size(in_frame), false); 547 dev->ops->rx_frame_size(in_frame), false);
548 548
549 if (!dev->ops->rx_is_frame_valid(in_frame)) { 549 if (!dev->ops->rx_is_frame_valid(in_frame)) {
550 nfc_dev_err(&dev->interface->dev, "Received an invalid frame"); 550 nfc_dev_err(&dev->interface->dev, "Received an invalid frame");
@@ -659,8 +659,8 @@ static int __pn533_send_frame_async(struct pn533 *dev,
659 dev->in_urb->transfer_buffer = in->data; 659 dev->in_urb->transfer_buffer = in->data;
660 dev->in_urb->transfer_buffer_length = in_len; 660 dev->in_urb->transfer_buffer_length = in_len;
661 661
662 print_hex_dump(KERN_DEBUG, "PN533 TX: ", DUMP_PREFIX_NONE, 16, 1, 662 print_hex_dump_debug("PN533 TX: ", DUMP_PREFIX_NONE, 16, 1,
663 out->data, out->len, false); 663 out->data, out->len, false);
664 664
665 rc = usb_submit_urb(dev->out_urb, GFP_KERNEL); 665 rc = usb_submit_urb(dev->out_urb, GFP_KERNEL);
666 if (rc) 666 if (rc)