Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp68513pxj; Thu, 3 Jun 2021 00:46:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzctcgYTjBq1gw6R7YvusK+03YrGkgoH58IMxQE4iWnBPN2BEYkbe69VzZnKj80YWIvYFIu X-Received: by 2002:a17:906:5f99:: with SMTP id a25mr17579633eju.45.1622706383060; Thu, 03 Jun 2021 00:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622706383; cv=none; d=google.com; s=arc-20160816; b=lPrYQLWlQ5AvkHKXvXuyr9Tw9t1XogukGr42a8t5HqjH1Krx7SM2BuHROyipsgr7Z2 QCMG3ddNXo0uLes1Ie0ASfuunLNT4U8+YOCyRaS8bgfOr0O+7529BTMB9rFjuvu5o1/x YyKdRvh4SD//SpFUnYzKca/NjJ7ETQewKLlpf0pbUR+xbA+93kXAo2BbE0qLlndNAz58 Xq7jd9smDmdVscEaP9KbLgB7Sm0vgaSYZWLGFS+cpNk/KeGa+fFb7H+h8CiablnSmemG h3CWFFLVFWVeOWIFl0swAkKy4J81kee9ITOuQNVdRnmVwKrhdI1vdGJ0EiWQQADvIJeI 8bdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=SWdHEiE+6Oe2SguMc0NqBy7j2OkVil3En6JN2KmkmjI=; b=UilKPd5w+pxNhEtooLhlC75+ZD8sEuDyqNbYta1JqnoITEhVuZV5jTtcTbvtwaqFr8 oEJr6Aj9BObd/+v5Fo2cgSKVJK1Q6n4F2HJUsxufZo058SYuM5Lv2kz2KoPIzC8rbRxD divq1/Kllr/g1wMzAil4fiUahsK8uJ0MNpgecgLFNNlMiBmCLflHs8WCkQpHxGHnZhRf wAPb2ka2E5lrXdefQdhpT+GrrqC63Sl7EOdWLo5sm4oJJ2GQ5dyILVDq9JBHGZHTT/Yw QEyr/E45TEjV2xd9RClbwgFt9gNPuFsF0rZAHV1EaHIneu3130a955Q13xNu2pQ2kD2q hL5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv12si1758866ejb.679.2021.06.03.00.46.00; Thu, 03 Jun 2021 00:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbhFCHqI (ORCPT + 99 others); Thu, 3 Jun 2021 03:46:08 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3400 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbhFCHqB (ORCPT ); Thu, 3 Jun 2021 03:46:01 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Fwd9B0y5kz67s2; Thu, 3 Jun 2021 15:40:30 +0800 (CST) Received: from dggpeml500012.china.huawei.com (7.185.36.15) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 3 Jun 2021 15:44:14 +0800 Received: from huawei.com (10.67.165.24) by dggpeml500012.china.huawei.com (7.185.36.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 3 Jun 2021 15:44:13 +0800 From: Kai Ye To: , , , , , , CC: , Subject: [PATCH v3 03/12] Bluetooth: hidp: Use the correct print format Date: Thu, 3 Jun 2021 15:40:56 +0800 Message-ID: <1622706065-45409-4-git-send-email-yekai13@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622706065-45409-1-git-send-email-yekai13@huawei.com> References: <1622706065-45409-1-git-send-email-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- net/bluetooth/hidp/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 0db48c8..1dc8dee 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c @@ -508,7 +508,7 @@ static int hidp_process_data(struct hidp_session *session, struct sk_buff *skb, unsigned char param) { int done_with_skb = 1; - BT_DBG("session %p skb %p len %d param 0x%02x", session, skb, skb->len, param); + BT_DBG("session %p skb %p len %u param 0x%02x", session, skb, skb->len, param); switch (param) { case HIDP_DATA_RTYPE_INPUT: @@ -553,7 +553,7 @@ static void hidp_recv_ctrl_frame(struct hidp_session *session, unsigned char hdr, type, param; int free_skb = 1; - BT_DBG("session %p skb %p len %d", session, skb, skb->len); + BT_DBG("session %p skb %p len %u", session, skb, skb->len); hdr = skb->data[0]; skb_pull(skb, 1); @@ -589,7 +589,7 @@ static void hidp_recv_intr_frame(struct hidp_session *session, { unsigned char hdr; - BT_DBG("session %p skb %p len %d", session, skb, skb->len); + BT_DBG("session %p skb %p len %u", session, skb, skb->len); hdr = skb->data[0]; skb_pull(skb, 1); -- 2.8.1