Bluetooth: msft: Use the correct print format
authorKai Ye <yekai13@huawei.com>
Thu, 3 Jun 2021 07:41:03 +0000 (15:41 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:42 +0000 (07:12 +0200)
According to Documentation/core-api/printk-formats.rst,
Use the correct print format. Printing an unsigned int value should use %u
instead of %d. Otherwise printk() might end up displaying negative numbers.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/msft.c

index 37a3947..b4bfae4 100644 (file)
@@ -311,7 +311,7 @@ static void msft_le_monitor_advertisement_cb(struct hci_dev *hdev,
 
        monitor = idr_find(&hdev->adv_monitors_idr, msft->pending_add_handle);
        if (!monitor) {
-               bt_dev_err(hdev, "msft add advmon: monitor %d is not found!",
+               bt_dev_err(hdev, "msft add advmon: monitor %u is not found!",
                           msft->pending_add_handle);
                status = HCI_ERROR_UNSPECIFIED;
                goto unlock;