Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp943617pxj; Fri, 21 May 2021 02:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUYNW9p8ccxWUFn5Ix8Cf7PfRiaiOcfALMJQwSqI0RACbM5PSYG4heg/lk3Kokp21cS9+d X-Received: by 2002:a17:907:2056:: with SMTP id pg22mr9395520ejb.19.1621590672842; Fri, 21 May 2021 02:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621590672; cv=none; d=google.com; s=arc-20160816; b=CHJC642oLBtuIA0+1M5M0dhqEFmAhnR+Ro1GWV1+z3/ch7Qwn1BpsuQFCUus+P7bpO U6bmIlTJt6nPYc3RCg4epHwj+Xi6egfYtbA9iYqYAkUG/SLnh4iJcZyuIcyX65ea+yOt PyzVygnB89iXTWFhd3okbC343GNiYo0OwPak0o5CYppIBx4lbqtPldfMQo5ORjggV2sb fnqsEA6nIsdvrnZwiMflOnvGZUWekLk/F5byojRI3tdEuWr9/WFQX4sl6K9UyXXWy6xO /VK+03/QYR+3NmfRllXf3ARf8NzXPW90fpKsfxJmhXuO8jXkuOvDcXUf5bXTCo1twAIH Sbvg== 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=M96Mb7cVvyOZ5oIYzipv65rpqFc8MS7HNtK1Z+Qjdck=; b=t0T/ugtAQM2KkT1jK+nGDZ7X+sRbKEy+WN/6Ahg4O2iWMhWsNnayLWsylHBYcxdb6e Ss8DOkME5optkYFClXFm5Oy8DPIjIfDmpHM6er6kbjSHYiithODmmDTFeHkBhIijRJED lOISWKN7KnrMnmT/VwuuZDQPplo0ahcOJL5+iahlgQuLHviNRzyPiX3RpNUCp3IA45F/ g3dj7St50BTfiMDXOJJno22fY/CIihGT0m14hCJpce9/abM6MyIAuT35Lnl7ju5R6quT TAXCCvd3yS8oGE/MTVl0pMwYOObAN9SvTfZK19A/azIR9ZcrwIpyM/TGZS80qNHXn10K Qj5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 s13si4929723eju.675.2021.05.21.02.50.50; Fri, 21 May 2021 02:51:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S231675AbhEUGEY (ORCPT + 99 others); Fri, 21 May 2021 02:04:24 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:3456 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231201AbhEUGEU (ORCPT ); Fri, 21 May 2021 02:04:20 -0400 Received: from dggems704-chm.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FmbYG4qM5zBvRW; Fri, 21 May 2021 14:00:02 +0800 (CST) Received: from dggpeml500012.china.huawei.com (7.185.36.15) by dggems704-chm.china.huawei.com (10.3.19.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 21 May 2021 14:02:50 +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; Fri, 21 May 2021 14:02:50 +0800 From: Kai Ye To: , , , , , , CC: , Subject: [PATCH v2 01/12] net/Bluetooth/bnep - use the correct print format Date: Fri, 21 May 2021 13:59:37 +0800 Message-ID: <1621576788-48092-2-git-send-email-yekai13@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1621576788-48092-1-git-send-email-yekai13@huawei.com> References: <1621576788-48092-1-git-send-email-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@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/bnep/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 43c2841..72f47b3 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c @@ -126,8 +126,8 @@ static int bnep_ctrl_set_netfilter(struct bnep_session *s, __be16 *data, int len f[i].start = get_unaligned_be16(data++); f[i].end = get_unaligned_be16(data++); - BT_DBG("proto filter start %d end %d", - f[i].start, f[i].end); + BT_DBG("proto filter start %u end %u", + f[i].start, f[i].end); } if (i < BNEP_MAX_PROTO_FILTERS) @@ -266,7 +266,7 @@ static int bnep_rx_extension(struct bnep_session *s, struct sk_buff *skb) break; } - BT_DBG("type 0x%x len %d", h->type, h->len); + BT_DBG("type 0x%x len %u", h->type, h->len); switch (h->type & BNEP_TYPE_MASK) { case BNEP_EXT_CONTROL: @@ -424,7 +424,7 @@ static int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb) int len = 0, il = 0; u8 type = 0; - BT_DBG("skb %p dev %p type %d", skb, skb->dev, skb->pkt_type); + BT_DBG("skb %p dev %p type %u", skb, skb->dev, skb->pkt_type); if (!skb->dev) { /* Control frame sent by us */ -- 2.8.1