Skip to content

Commit

Permalink
Bluetooth: Respect HCI_UART_DEBUG config in hci_ll.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Pelly authored and Marcel Holtmann committed Nov 30, 2008
1 parent 51a6fbc commit 7b99d17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/bluetooth/hci_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b99d17

Please sign in to comment.