diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-11-30 06:17:28 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-11-30 06:17:28 -0500 |
commit | a418b893a6af11ae73c762ed5b76c1bad6dc19d8 (patch) | |
tree | a24f9192988e4d55077d77420b90dc3cfd647a06 /net/bluetooth/hci_core.c | |
parent | 5ddd4a60683f819982b7bd3d1aee972f931c11a3 (diff) |
Bluetooth: Enable per-module dynamic debug messages
With the introduction of CONFIG_DYNAMIC_PRINTK_DEBUG it is possible to
allow debugging without having to recompile the kernel. This patch turns
all BT_DBG() calls into pr_debug() to support dynamic debug messages.
As a side effect all CONFIG_BT_*_DEBUG statements are now removed and
some broken debug entries have been fixed.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index fa7c5370b55..ba78cc1eb8d 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -48,11 +48,6 @@ | |||
48 | #include <net/bluetooth/bluetooth.h> | 48 | #include <net/bluetooth/bluetooth.h> |
49 | #include <net/bluetooth/hci_core.h> | 49 | #include <net/bluetooth/hci_core.h> |
50 | 50 | ||
51 | #ifndef CONFIG_BT_HCI_CORE_DEBUG | ||
52 | #undef BT_DBG | ||
53 | #define BT_DBG(D...) | ||
54 | #endif | ||
55 | |||
56 | static void hci_cmd_task(unsigned long arg); | 51 | static void hci_cmd_task(unsigned long arg); |
57 | static void hci_rx_task(unsigned long arg); | 52 | static void hci_rx_task(unsigned long arg); |
58 | static void hci_tx_task(unsigned long arg); | 53 | static void hci_tx_task(unsigned long arg); |
@@ -290,7 +285,7 @@ static void hci_linkpol_req(struct hci_dev *hdev, unsigned long opt) | |||
290 | { | 285 | { |
291 | __le16 policy = cpu_to_le16(opt); | 286 | __le16 policy = cpu_to_le16(opt); |
292 | 287 | ||
293 | BT_DBG("%s %x", hdev->name, opt); | 288 | BT_DBG("%s %x", hdev->name, policy); |
294 | 289 | ||
295 | /* Default link policy */ | 290 | /* Default link policy */ |
296 | hci_send_cmd(hdev, HCI_OP_WRITE_DEF_LINK_POLICY, 2, &policy); | 291 | hci_send_cmd(hdev, HCI_OP_WRITE_DEF_LINK_POLICY, 2, &policy); |