* [lttng-dev] [PATCH] Use lu% instead ld% to print count
@ 2022-06-09 3:08 yaowenbin via lttng-dev
2022-06-09 17:54 ` Mathieu Desnoyers via lttng-dev
0 siblings, 1 reply; 2+ messages in thread
From: yaowenbin via lttng-dev @ 2022-06-09 3:08 UTC (permalink / raw)
To: lttng-dev; +Cc: hewenliang (C), wuxu.wu, linfeilong, yaowenbin1
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 <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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [lttng-dev] [PATCH] Use lu% instead ld% to print count
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
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2022-06-09 17:54 UTC (permalink / raw)
To: yaowenbin; +Cc: lttng-dev, h00486469, wuxu wu, linfeilong
----- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-09 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.