Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: amp: 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>

authored by

Kai Ye and committed by
Marcel Holtmann
610850be fad48d84

+3 -3
+3 -3
net/bluetooth/amp.c
··· 78 78 { 79 79 struct amp_ctrl *ctrl; 80 80 81 - BT_DBG("mgr %p id %d", mgr, id); 81 + BT_DBG("mgr %p id %u", mgr, id); 82 82 83 83 mutex_lock(&mgr->amp_ctrls_lock); 84 84 list_for_each_entry(ctrl, &mgr->amp_ctrls, list) { ··· 179 179 180 180 /* Legacy key */ 181 181 if (conn->key_type < 3) { 182 - bt_dev_err(hdev, "legacy key type %d", conn->key_type); 182 + bt_dev_err(hdev, "legacy key type %u", conn->key_type); 183 183 return -EACCES; 184 184 } 185 185 ··· 257 257 struct hci_request req; 258 258 int err; 259 259 260 - BT_DBG("%s handle %d", hdev->name, phy_handle); 260 + BT_DBG("%s handle %u", hdev->name, phy_handle); 261 261 262 262 cp.phy_handle = phy_handle; 263 263 cp.max_len = cpu_to_le16(hdev->amp_assoc_size);