lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: yaowenbin <yaowenbin1@huawei.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>,
	h00486469 <hewenliang4@huawei.com>,  wuxu wu <wuxu.wu@huawei.com>,
	linfeilong <linfeilong@huawei.com>
Subject: Re: [lttng-dev] [PATCH] Use lu% instead ld% to print count
Date: Thu, 9 Jun 2022 13:54:31 -0400 (EDT)	[thread overview]
Message-ID: <1171026491.43508.1654797271985.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <9deb745d-bf26-9a9a-9f00-6a4c5104183d@huawei.com>

----- 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 <yaowenbin1@huawei.com>
> ---
> 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

      reply	other threads:[~2022-06-09 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-09  3:08 [lttng-dev] [PATCH] Use lu% instead ld% to print count yaowenbin via lttng-dev
2022-06-09 17:54 ` Mathieu Desnoyers via lttng-dev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1171026491.43508.1654797271985.JavaMail.zimbra@efficios.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=hewenliang4@huawei.com \
    --cc=linfeilong@huawei.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=wuxu.wu@huawei.com \
    --cc=yaowenbin1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).