Bluetooth: Add BT_DBG to mgmt_discovering()
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 22 Nov 2011 20:14:19 +0000 (17:14 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:35 +0000 (17:01 +0200)
This is helpful for device discovery implementation & debuging.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c

index 11ee5db16e97c5d20f4373e66b8db75e81c0e8a3..77bc5a4b026c27dea5f90cbc6ea118e8d186ebb5 100644 (file)
@@ -3002,6 +3002,8 @@ int mgmt_discovering(struct hci_dev *hdev, u8 discovering)
 {
        struct pending_cmd *cmd;
 
+       BT_DBG("%s discovering %u", hdev->name, discovering);
+
        if (discovering)
                cmd = mgmt_pending_find(MGMT_OP_START_DISCOVERY, hdev);
        else