From: Kai Ye Date: Thu, 3 Jun 2021 07:41:03 +0000 (+0800) Subject: Bluetooth: msft: Use the correct print format X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=496bdeeeda09e84f469f47e66f6d38d3735f802f;p=linux.git Bluetooth: msft: Use the correct print format 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c index 37a394786a946..b4bfae41e8a55 100644 --- a/net/bluetooth/msft.c +++ b/net/bluetooth/msft.c @@ -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;