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/af_bluetooth.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/af_bluetooth.c')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index f6f216e57aa3..744ed3f07ef3 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c | |||
@@ -41,11 +41,6 @@ | |||
41 | 41 | ||
42 | #include <net/bluetooth/bluetooth.h> | 42 | #include <net/bluetooth/bluetooth.h> |
43 | 43 | ||
44 | #ifndef CONFIG_BT_SOCK_DEBUG | ||
45 | #undef BT_DBG | ||
46 | #define BT_DBG(D...) | ||
47 | #endif | ||
48 | |||
49 | #define VERSION "2.14" | 44 | #define VERSION "2.14" |
50 | 45 | ||
51 | /* Bluetooth sockets */ | 46 | /* Bluetooth sockets */ |
@@ -245,7 +240,7 @@ int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
245 | size_t copied; | 240 | size_t copied; |
246 | int err; | 241 | int err; |
247 | 242 | ||
248 | BT_DBG("sock %p sk %p len %d", sock, sk, len); | 243 | BT_DBG("sock %p sk %p len %zu", sock, sk, len); |
249 | 244 | ||
250 | if (flags & (MSG_OOB)) | 245 | if (flags & (MSG_OOB)) |
251 | return -EOPNOTSUPP; | 246 | return -EOPNOTSUPP; |