Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp68826pxj; Thu, 3 Jun 2021 00:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh6x9ZyROfhol5retFAdrEXw9BHbJgDiU5AErUTJr4SQ//oaDxJeqhziGa/N78VJJLA97R X-Received: by 2002:a17:906:b048:: with SMTP id bj8mr38334010ejb.236.1622706417305; Thu, 03 Jun 2021 00:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622706417; cv=none; d=google.com; s=arc-20160816; b=LP7L83syXgHlB61ecYBxZzpH7Q0u6seDo+jGctJ1Yu+1J9sDK82hg2HkLKjfFy9iHN 1VZEAx9Y/S8XrDvMogcoC0KR/mwX6c5WyJsD58RxgrbVmG28Fk97tOYsJNd3OnyC6SSm 2Y5oUlwHU0OdO5XiLP1Quw5ZMZZlI6OmUk4hkaLrPcOg5bVraA+rc9BAIjST9xkn/S4+ T29py+HP0+tYEhvDaKVwm6jdj4Q3ORVbZJYfxKyzuEB87iQEZZ9q28oJWD4MLmQ/Gsrv NZhXaxHskouFfcwCcCiXdk3H58Md/4IJuSl97sGp4LYmKB1YVzKOwovGzrI50+tyCGFJ 3+wg== 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=HQrwth6/ewt/5+IBfN7Rm7vJ5rNbr/8lhueZ1hriBk4PJCG1CKN+V+wRVfGYs9uTPI LR+lHlMqubYly3LFxzVIb5mhI5fLHQW5zQZd5iuNHaMLU2lwB0WLT5wzltfG2cfDJC2u tOOGdkFyJFE2VmGdEUN08jdI2otxO5MLP7Rda+rSA8nLc3SvFrhP9DXofK3094HWGhb/ wDbxNR8GlhRJCsT6FV7mhojNdoWrFGIxA/aI/yedASt3Q97JX3H/MlPsBlelxKJaU7PL ssZD/SMlm3iP1y9R2oyXVGzrRDmNDg0G+OuofuQ6huQAuPj0Zp0ifx/1tjj0DdPQgzCT heXw== 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 j16si2288186edj.401.2021.06.03.00.46.32; Thu, 03 Jun 2021 00:46:57 -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 S230138AbhFCHqR (ORCPT + 99 others); Thu, 3 Jun 2021 03:46:17 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3045 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbhFCHqG (ORCPT ); Thu, 3 Jun 2021 03:46:06 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Fwd875tkMzWrGC; Thu, 3 Jun 2021 15:39:35 +0800 (CST) Received: from dggpeml500012.china.huawei.com (7.185.36.15) by dggemv711-chm.china.huawei.com (10.1.198.66) 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 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 01/12] Bluetooth: bnep: Use the correct print format Date: Thu, 3 Jun 2021 15:40:54 +0800 Message-ID: <1622706065-45409-2-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/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