Commit 6986916b authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Fix compile errors with enabled debugging

This patch fixes some stupid compile errors when debugging is enabled.

Noticed by Christian Hesse <mail@earthworm.de>
parent 1d117b0c
...@@ -512,7 +512,7 @@ static int bcsp_recv(struct hci_uart *hu, void *data, int count) ...@@ -512,7 +512,7 @@ static int bcsp_recv(struct hci_uart *hu, void *data, int count)
struct bcsp_struct *bcsp = hu->priv; struct bcsp_struct *bcsp = hu->priv;
register unsigned char *ptr; register unsigned char *ptr;
BT_DBG("hu %p count %d rx_state %ld rx_count %ld", BT_DBG("hu %p count %d rx_state %d rx_count %ld",
hu, count, bcsp->rx_state, bcsp->rx_count); hu, count, bcsp->rx_state, bcsp->rx_count);
ptr = data; ptr = data;
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
#include "hci_usb.h" #include "hci_usb.h"
#ifndef HCI_USB_DEBUG #ifndef CONFIG_BT_HCIUSB_DEBUG
#undef BT_DBG #undef BT_DBG
#define BT_DBG( A... ) #define BT_DBG( A... )
#undef BT_DMP #undef BT_DMP
...@@ -795,7 +795,7 @@ int hci_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -795,7 +795,7 @@ int hci_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
struct hci_dev *hdev; struct hci_dev *hdev;
int i, a, e, size, ifn, isoc_ifnum, isoc_alts; int i, a, e, size, ifn, isoc_ifnum, isoc_alts;
BT_DBG("udev %p ifnum %d", udev, ifnum); BT_DBG("udev %p intf %p", udev, intf);
if (!id->driver_info) { if (!id->driver_info) {
const struct usb_device_id *match; const struct usb_device_id *match;
......
...@@ -222,7 +222,7 @@ static void hci_cc_host_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb ...@@ -222,7 +222,7 @@ static void hci_cc_host_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb
vs = (struct hci_rp_read_voice_setting *) skb->data; vs = (struct hci_rp_read_voice_setting *) skb->data;
if (vs->status) { if (vs->status) {
BT_DBG("%s READ_VOICE_SETTING failed %d", hdev->name, vc->status); BT_DBG("%s READ_VOICE_SETTING failed %d", hdev->name, vs->status);
break; break;
} }
...@@ -359,7 +359,7 @@ static inline void hci_cs_create_conn(struct hci_dev *hdev, __u8 status) ...@@ -359,7 +359,7 @@ static inline void hci_cs_create_conn(struct hci_dev *hdev, __u8 status)
conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr);
BT_DBG("%s status 0x%x bdaddr %s conn %p", hdev->name, BT_DBG("%s status 0x%x bdaddr %s conn %p", hdev->name,
status, batostr(&cc->bdaddr), conn); status, batostr(&cp->bdaddr), conn);
if (status) { if (status) {
if (conn) { if (conn) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment