public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Pelly <npelly@google.com>
To: linux-bluetooth@vger.kernel.org, Marcel Holtmann <marcel@holtmann.org>
Subject: Re: patch: Respect HCI_UART_DEBUG config in hci_ll.c
Date: Sun, 30 Nov 2008 18:02:20 -0800	[thread overview]
Message-ID: <35c90d960811301802l62b26c0eq72e896e48ea917b3@mail.gmail.com> (raw)
In-Reply-To: <35c90d960811301800o114b9b58pafeae86c09d668e9@mail.gmail.com>

Author: Nick Pelly <npelly@google.com>
Date:   Mon Apr 21 12:18:51 2008 -0700

  bluetooth: Respect HCI_UART_DEBUG config in hci_ll.c

  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>

diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index b91d45a..2d2f66e 100644
--- 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

      parent reply	other threads:[~2008-12-01  2:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  2:24 patch: Respect HCI_UART_DEBUG config in hci_ll.c Nick Pelly
2008-11-30  9:04 ` Marcel Holtmann
     [not found]   ` <35c90d960811301800o114b9b58pafeae86c09d668e9@mail.gmail.com>
2008-12-01  2:02     ` Nick Pelly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=35c90d960811301802l62b26c0eq72e896e48ea917b3@mail.gmail.com \
    --to=npelly@google.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox