summaryrefslogtreecommitdiff
path: root/net/bluetooth/mgmt_config.c
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2021-06-03 15:41:02 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-06-26 07:12:42 +0200
commit85d6728421c9b2797dea3a20f213dd44d9f8d7cd (patch)
tree54d72ccf6af5b1c754d6ca32470ccba22d58868d /net/bluetooth/mgmt_config.c
parent610850bebc5baaf92d113247387b9fcab187259f (diff)
Bluetooth: mgmt: 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>
Diffstat (limited to 'net/bluetooth/mgmt_config.c')
-rw-r--r--net/bluetooth/mgmt_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt_config.c b/net/bluetooth/mgmt_config.c
index 1deb0ca7a929..6ef701c27da4 100644
--- a/net/bluetooth/mgmt_config.c
+++ b/net/bluetooth/mgmt_config.c
@@ -146,7 +146,7 @@ int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
const u16 type = le16_to_cpu(TO_TLV(buffer)->type);
if (buffer_left < exp_len) {
- bt_dev_warn(hdev, "invalid len left %d, exp >= %d",
+ bt_dev_warn(hdev, "invalid len left %u, exp >= %u",
buffer_left, exp_len);
return mgmt_cmd_status(sk, hdev->id,
@@ -198,7 +198,7 @@ int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
}
if (exp_type_len && len != exp_type_len) {
- bt_dev_warn(hdev, "invalid length %d, exp %zu for type %d",
+ bt_dev_warn(hdev, "invalid length %d, exp %zu for type %u",
len, exp_type_len, type);
return mgmt_cmd_status(sk, hdev->id,