From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WKJEOd0UomK/7gAAWB0awg (envelope-from ) for ; Thu, 09 Jun 2022 11:42:21 -0400 Received: by simark.ca (Postfix, from userid 112) id DFF1E1E223; Thu, 9 Jun 2022 11:42:21 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=lists.lttng.org header.i=@lists.lttng.org header.a=rsa-sha256 header.s=default header.b=IFHhMf8S; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D87401E15C for ; Thu, 9 Jun 2022 11:42:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1654789340; bh=CO4HSJq4QclbHnt6Wb/BNj/JbD+RYtmL8oQT9d4kh6k=; h=Date:To:CC:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=IFHhMf8STazEkAZcpgfDzAYHeOUvDQ39d9H8rSQPb9uewMfj0uEiWUFYzlUnnjDej 2pRIW6leBTewz48bqQprap3EuH7EjECn5QZBiBu+wap6avC9vM7Q8aFMGVOjvzla1i iJuJJ3cJN5uRsQaD3XkoMj0QkkwBvVucNF0g0tCZoXcBZNUU/5o1UwkNhOhWLef/Lg GvKuNlbN7xccslzk7a7jdCsZxYxxEPBfk2tgLB5UWW/pgsMITCu7+7CN4oqwYOGYaS z3Gm0RXefeTkM3vdDpfY4W1kgLt9zWHhAeP0xJ7QH1frF/X94tAMy5Thwq3QoUsxcI /x2v+3dn9qbYA== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4LJpHw1Trmz6qS; Thu, 9 Jun 2022 11:42:20 -0400 (EDT) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lists.lttng.org (Postfix) with ESMTPS id 4LJV0w3b3sz6Sb for ; Wed, 8 Jun 2022 23:28:16 -0400 (EDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LJTXp36VWzjYRj for ; Thu, 9 Jun 2022 11:07:22 +0800 (CST) Received: from dggpeml500002.china.huawei.com (7.185.36.158) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 9 Jun 2022 11:08:43 +0800 Received: from [10.174.179.208] (10.174.179.208) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 9 Jun 2022 11:08:43 +0800 Message-ID: <9deb745d-bf26-9a9a-9f00-6a4c5104183d@huawei.com> Date: Thu, 9 Jun 2022 11:08:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 To: CC: "hewenliang (C)" , , , X-Originating-IP: [10.174.179.208] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 09 Jun 2022 11:42:19 -0400 Subject: [lttng-dev] [PATCH] Use lu% instead ld% to print count X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: yaowenbin via lttng-dev Reply-To: yaowenbin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" In ht_count_del function, the type of count variable is defined as unsigned long, so use lu% instead ld% to print it. Signed-off-by: yaowenbin1 --- src/rculfhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rculfhash.c b/src/rculfhash.c index 8046f3a..872d6ff 100644 --- a/src/rculfhash.c +++ b/src/rculfhash.c @@ -763,7 +763,7 @@ void ht_count_del(struct cds_lfht *ht, unsigned long size, unsigned long hash) if ((count >> CHAIN_LEN_RESIZE_THRESHOLD) >= size) return; - dbg_printf("del set global %ld\n", count); + dbg_printf("del set global %lu\n", count); /* * Don't shrink table if the number of nodes is below a * certain threshold. -- 2.27.0 _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev