Skip to content

Commit 496bdee

Browse files
yekai123123holtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 85d6728 commit 496bdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/msft.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static void msft_le_monitor_advertisement_cb(struct hci_dev *hdev,
311311

312312
monitor = idr_find(&hdev->adv_monitors_idr, msft->pending_add_handle);
313313
if (!monitor) {
314-
bt_dev_err(hdev, "msft add advmon: monitor %d is not found!",
314+
bt_dev_err(hdev, "msft add advmon: monitor %u is not found!",
315315
msft->pending_add_handle);
316316
status = HCI_ERROR_UNSPECIFIED;
317317
goto unlock;

0 commit comments

Comments
 (0)