* patch: Respect HCI_UART_DEBUG config in hci_ll.c
@ 2008-11-21 2:24 Nick Pelly
2008-11-30 9:04 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Nick Pelly @ 2008-11-21 2:24 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
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: 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
[-- Attachment #2: fix_hcill_debug.txt --]
[-- Type: text/plain, Size: 759 bytes --]
commit 4c70181b749225534eaaca6b57ac48be6391c2b9
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: 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: patch: Respect HCI_UART_DEBUG config in hci_ll.c
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>
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2008-11-30 9:04 UTC (permalink / raw)
To: Nick Pelly; +Cc: linux-bluetooth
Hi Nick,
> 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: Brian Swetland <swetland@google.com>
you have to fix your mail client to _NOT_ send mutli-part crap. Please
follow the proper guidelines for sending kernel patches. Otherwise you
make it complicated for me to apply patches. Especially these no
brainers.
So who wrote this patch? You are Brian. If you wrote the patch like
author indicated, then Brian should do an Acked-by unless he actually
sends the patch to me. In this case you send the patch so it should look
like this:
Signed-off-by: Nick Pelly <npelly@google.com>
Acked-by: Brian Swetland <swetland@google.com>
If you wrote the patch and Brian sent it to me, then he has to do
Signed-off since he is part of the chain. It is all documented in the
kernel source code :)
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: patch: Respect HCI_UART_DEBUG config in hci_ll.c
[not found] ` <35c90d960811301800o114b9b58pafeae86c09d668e9@mail.gmail.com>
@ 2008-12-01 2:02 ` Nick Pelly
0 siblings, 0 replies; 3+ messages in thread
From: Nick Pelly @ 2008-12-01 2:02 UTC (permalink / raw)
To: linux-bluetooth, Marcel Holtmann
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-01 2:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox