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 /drivers/bluetooth/bcm203x.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 'drivers/bluetooth/bcm203x.c')
-rw-r--r-- | drivers/bluetooth/bcm203x.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c index ee40201c7278..eafd4af0746e 100644 --- a/drivers/bluetooth/bcm203x.c +++ b/drivers/bluetooth/bcm203x.c | |||
@@ -37,11 +37,6 @@ | |||
37 | 37 | ||
38 | #include <net/bluetooth/bluetooth.h> | 38 | #include <net/bluetooth/bluetooth.h> |
39 | 39 | ||
40 | #ifndef CONFIG_BT_HCIBCM203X_DEBUG | ||
41 | #undef BT_DBG | ||
42 | #define BT_DBG(D...) | ||
43 | #endif | ||
44 | |||
45 | #define VERSION "1.2" | 40 | #define VERSION "1.2" |
46 | 41 | ||
47 | static struct usb_device_id bcm203x_table[] = { | 42 | static struct usb_device_id bcm203x_table[] = { |
@@ -199,7 +194,7 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id | |||
199 | return -EIO; | 194 | return -EIO; |
200 | } | 195 | } |
201 | 196 | ||
202 | BT_DBG("minidrv data %p size %d", firmware->data, firmware->size); | 197 | BT_DBG("minidrv data %p size %zu", firmware->data, firmware->size); |
203 | 198 | ||
204 | size = max_t(uint, firmware->size, 4096); | 199 | size = max_t(uint, firmware->size, 4096); |
205 | 200 | ||
@@ -227,7 +222,7 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id | |||
227 | return -EIO; | 222 | return -EIO; |
228 | } | 223 | } |
229 | 224 | ||
230 | BT_DBG("firmware data %p size %d", firmware->data, firmware->size); | 225 | BT_DBG("firmware data %p size %zu", firmware->data, firmware->size); |
231 | 226 | ||
232 | data->fw_data = kmalloc(firmware->size, GFP_KERNEL); | 227 | data->fw_data = kmalloc(firmware->size, GFP_KERNEL); |
233 | if (!data->fw_data) { | 228 | if (!data->fw_data) { |