[ltt-dev] [PATCH 6/9] rculfhash: use dbg_printf()
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Fri Oct 14 10:14:53 EDT 2011
* Lai Jiangshan (laijs at cn.fujitsu.com) wrote:
> Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
merged, thanks!
Mathieu
> ---
> rculfhash.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/rculfhash.c b/rculfhash.c
> index f901ded..edbd24a 100644
> --- a/rculfhash.c
> +++ b/rculfhash.c
> @@ -1598,8 +1598,8 @@ void _do_cds_lfht_grow(struct cds_lfht *ht,
>
> old_order = get_count_order_ulong(old_size) + 1;
> new_order = get_count_order_ulong(new_size) + 1;
> - printf("resize from %lu (order %lu) to %lu (order %lu) buckets\n",
> - old_size, old_order, new_size, new_order);
> + dbg_printf("resize from %lu (order %lu) to %lu (order %lu) buckets\n",
> + old_size, old_order, new_size, new_order);
> assert(new_size > old_size);
> init_table(ht, old_order, new_order - old_order);
> }
> @@ -1614,8 +1614,8 @@ void _do_cds_lfht_shrink(struct cds_lfht *ht,
> new_size = max(new_size, MIN_TABLE_SIZE);
> old_order = get_count_order_ulong(old_size) + 1;
> new_order = get_count_order_ulong(new_size) + 1;
> - printf("resize from %lu (order %lu) to %lu (order %lu) buckets\n",
> - old_size, old_order, new_size, new_order);
> + dbg_printf("resize from %lu (order %lu) to %lu (order %lu) buckets\n",
> + old_size, old_order, new_size, new_order);
> assert(new_size < old_size);
>
> /* Remove and unlink all dummy nodes to remove. */
> --
> 1.7.4.4
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list