projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a6fbc
)
Bluetooth: Respect HCI_UART_DEBUG config in hci_ll.c
author
Nick Pelly
<npelly@google.com>
Sun, 30 Nov 2008 11:17:20 +0000
(12:17 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 30 Nov 2008 11:17:20 +0000
(12:17 +0100)
Following the pattern from hci_*.c, turn off BT_DBG messages unless
they have been requested via HCI_UART_DEBUG
Signed-off-by: Nick Pelly <npelly@google.com>
Acked-by: Brian Swetland <swetland@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ll.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_ll.c
b/drivers/bluetooth/hci_ll.c
index b91d45a41b2f6b7e88716626b392a33124b789d8..2d2f66e17fea65c6baed390a4129639fc0e0e7f2 100644
(file)
--- a/
drivers/bluetooth/hci_ll.c
+++ b/
drivers/bluetooth/hci_ll.c
@@
-51,6
+51,11
@@
#include "hci_uart.h"
+#ifndef CONFIG_BT_HCIUART_DEBUG
+#undef BT_DBG
+#define BT_DBG( A... )
+#endif
+
/* HCILL commands */
#define HCILL_GO_TO_SLEEP_IND 0x30
#define HCILL_GO_TO_SLEEP_ACK 0x31