From 72739a60f28d63d43d2840b31fc655f65aa7baf5 Mon Sep 17 00:00:00 2001 From: Vijayabhaskar Katamreddy Date: Tue, 7 May 2019 13:27:32 -0700 Subject: bihash: Freeing up working_copy_lengths vector 1)Freeing up working_copy_lengths vector 2)Passing vebososity level to fmt_fn Change-Id: I5e3f541e2f8cc0150105cc35835366f84937bb2e Signed-off-by: Vijayabhaskar Katamreddy --- src/vppinfra/bihash_template.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c index 9de1df4c59c..a10dee025bf 100644 --- a/src/vppinfra/bihash_template.c +++ b/src/vppinfra/bihash_template.c @@ -196,6 +196,7 @@ void BV (clib_bihash_set_kvp_format_fn) (BVT (clib_bihash) * h, void BV (clib_bihash_free) (BVT (clib_bihash) * h) { vec_free (h->working_copies); + vec_free (h->working_copy_lengths); #if BIHASH_32_64_SVM == 0 vec_free (h->freelists); #else @@ -764,7 +765,7 @@ u8 *BV (format_bihash) (u8 * s, va_list * args) { s = format (s, " %d: %U\n", j * BIHASH_KVP_PER_PAGE + k, - h->fmt_fn, &(v->kvp[k])); + h->fmt_fn, &(v->kvp[k]), verbose); } else { -- cgit 1.2.3-korg