From: yaowenbin1 Date: Thu, 9 Jun 2022 03:08:25 +0000 (+0800) Subject: Fix: Use %lu rather than %ld to print count X-Git-Tag: v0.13.2~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9cd319f7a2e479bec7c694740f9c7bba8f6d2876;p=urcu.git Fix: Use %lu rather than %ld to print count In ht_count_del function, the type of count variable is defined as unsigned long, so use %lu rather than %ld to print it. Signed-off-by: yaowenbin1 Signed-off-by: Mathieu Desnoyers Change-Id: Ie2701fa0a8170b05532429b34e0f798e6f27139b --- diff --git a/src/rculfhash.c b/src/rculfhash.c index 9106a74..a80a75a 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.