Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp942387pxj; Fri, 21 May 2021 02:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZAAlVBEeFtH0M+PwbgkifD4+dTIgGEfKQvXR67BoefGzoNGKxj56cqRbKdkT+SRAUqMjr X-Received: by 2002:a17:906:3ce9:: with SMTP id d9mr9308166ejh.172.1621590535437; Fri, 21 May 2021 02:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621590535; cv=none; d=google.com; s=arc-20160816; b=QrPV4S194GPjYZYF4VCVvA80waXAK+Pi+zw6nj5m0zdWHaYgLS36p+yt4XLu4ltGq3 e6/kMsG+qfIXCztE3DWZKP5u8/2KAqHFr3B61E3wFCalDe+wH19RNJl37VBH8S9/LuQN XR4isFxp5nM+ElJDCQIv5p7QkvKSJzRazn4n2F7bGie6ZCllADPVqWX3CS7+7OJo922j cIh98lEFACE+hANRlRE3Mecdqso669i5nCEP0KN4qP+FrBptS0OW9bImQznJDOpiH2lf EKDJ1rOpLNxXcYlsLWcn//s6/HPrzQWnMODkZYUlM9h5f15yi6acxn7rMMI3UMNIclx3 eIkg== 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=ALM+4vXAnLNvFintfF4vuavovXWyYARXWFH7viUsatQUUloZBVRSXsszcdbBtzTmW4 L7/CTQz1BiWMBI73qHDUZPY+WYGG1O1vyP1h2wu6I7VGdNRZK9qbgLz8/7+GieIY0Whn eW0m2kNzIjN8bkjsKd5saBPawoB2Ne99j0YuzPoTTeByo/KD2LyvbYHx4h6ZwXXP6Haz e6ayNNLpREij2Dsyt5pWrr8SG0z7LrHzkstqZVbMSCzeNsoh9jaTSi/dQPdyJD6fOdav 2xPDcwd8cVMz+y3qg8nrsqVxkT6n8AZFMbGt3ri3/O/EILI1vRx7vqZzTk1yyVjELsql z/kw== 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 p10si5216222ejo.39.2021.05.21.02.48.32; Fri, 21 May 2021 02:48:55 -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 S231421AbhEUGEV (ORCPT + 99 others); Fri, 21 May 2021 02:04:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4710 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbhEUGET (ORCPT ); Fri, 21 May 2021 02:04:19 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FmbYH4Bcrz16Qfy; Fri, 21 May 2021 14:00:03 +0800 (CST) Received: from dggpeml500012.china.huawei.com (7.185.36.15) by dggems702-chm.china.huawei.com (10.3.19.179) 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:51 +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 03/12] net/Bluetooth/hidp - use the correct print format Date: Fri, 21 May 2021 13:59:39 +0800 Message-ID: <1621576788-48092-4-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/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