[PATCH 10/10] conditional compile debug statements

From: Mark P . Mendelsohn
Date: Mon Oct 24 2011 - 12:57:04 EST


---
drivers/bluetooth/hci_h5.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index d629d2b..2effe06 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -317,7 +317,10 @@ static struct sk_buff *h5_prepare_pkt(struct h5_struct *h5, u8 *data,

h5_slip_msgdelim(nskb);

+#ifdef DEBUG
print_hex_dump_bytes("h5_tx ", DUMP_PREFIX_NONE, nskb->data, nskb->len);
+#endif
+
return nskb;
}

@@ -631,7 +634,9 @@ static int h5_recv(struct hci_uart *hu, void *data, int count)
BT_DBG("hu %p count %d rx_state %d rx_count %ld\n",
hu, count, h5->rx_state, h5->rx_count);

+#ifdef DEBUG
print_hex_dump_bytes("h5_recv ", DUMP_PREFIX_NONE, data, count);
+#endif

ptr = data;

@@ -777,8 +782,10 @@ static int h5_recv(struct hci_uart *hu, void *data, int count)
}
}

+#ifdef DEBUG
printk("leaving h5_recv rx_state %d rx_count %d ptr %02x\n", h5->rx_state,
h5->rx_count, *ptr);
+#endif

if (h5->txack_req) {
/* If needed, transmit an ack pkt */
--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/