From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 3D8aFNwzomIY9gAAWB0awg (envelope-from ) for ; Thu, 09 Jun 2022 13:54:36 -0400 Received: by simark.ca (Postfix, from userid 112) id 3A6011E223; Thu, 9 Jun 2022 13:54:36 -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=U+7HysIK; 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 164311E15C for ; Thu, 9 Jun 2022 13:54:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1654797274; bh=ZvWenfeHlnIGrAY8pAxWOCHyv1HQv1Mb2iW+p1wAdBs=; h=Date:To:Cc:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=U+7HysIKbaMLHWuQNccuEEG6oSzylDU33oSvcN7DAFnLCGi7/WlY126UGug7+qjvf H61cAGN9DMIoCRnU0duZYSlu5dhJFkunFss2NLbruUXCIa3XP3OXbmNqVxJ/e8m/id QZABnc8zAneUsurSMnO2AA/7nIWmSakWNfSiSMAiknREi2cKHQ7kg2I1JmRRTh2e3z Svf8WIIkG85bAnILw18ZodJZycJwkgUWWAuUKNbEPDOfhFY60gdP8NhHMjz2QmaVpq WBmLrKXbwLkg+KMQY1zTl2sK0E6aeNSvdD1oZVAurL82meIZEyL21ue0CrhJlia17E B/NP2lw3/1vJQ== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4LJsDV3TRLz6j1; Thu, 9 Jun 2022 13:54:34 -0400 (EDT) Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lists.lttng.org (Postfix) with ESMTPS id 4LJsDT2c2wz6j0 for ; Thu, 9 Jun 2022 13:54:33 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id BAF44411D5E for ; Thu, 9 Jun 2022 13:54:32 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0Mq2yaRfWkbt; Thu, 9 Jun 2022 13:54:32 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 23637411BB6; Thu, 9 Jun 2022 13:54:32 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 23637411BB6 X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AIkOt_sd4GW1; Thu, 9 Jun 2022 13:54:32 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 187B9411970; Thu, 9 Jun 2022 13:54:32 -0400 (EDT) Date: Thu, 9 Jun 2022 13:54:31 -0400 (EDT) To: yaowenbin Cc: lttng-dev , h00486469 , wuxu wu , linfeilong Message-ID: <1171026491.43508.1654797271985.JavaMail.zimbra@efficios.com> In-Reply-To: <9deb745d-bf26-9a9a-9f00-6a4c5104183d@huawei.com> References: <9deb745d-bf26-9a9a-9f00-6a4c5104183d@huawei.com> MIME-Version: 1.0 X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4272 (ZimbraWebClient - FF100 (Linux)/8.8.15_GA_4257) Thread-Topic: Use lu% instead ld% to print count Thread-Index: 55YH6nisglD8ZN5UHiacp3AFyuWbJA== Subject: Re: [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: Mathieu Desnoyers via lttng-dev Reply-To: Mathieu Desnoyers Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" ----- On Jun 8, 2022, at 11:08 PM, yaowenbin via lttng-dev lttng-dev@lists.lttng.org wrote: > In ht_count_del function, the type of count variable is defined as unsigned > long, > so use lu% instead ld% to print it. Merged into urcu master, stable-0.13 and stable-0.12 branches, thanks! Mathieu > > 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 -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev