summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2021-06-03 15:41:03 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-06-26 07:12:42 +0200
commit496bdeeeda09e84f469f47e66f6d38d3735f802f (patch)
tree611597ab6ae0bf586cfb319d119662e00185c74b
parent85d6728421c9b2797dea3a20f213dd44d9f8d7cd (diff)
downloadlinux-496bdeeeda09e84f469f47e66f6d38d3735f802f.tar.bz2
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 <yekai13@huawei.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/bluetooth/msft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c
index 37a394786a94..b4bfae41e8a5 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;