From e0db09034a17347fe9c35557fb6b0afe46d82a2b Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 29 May 2020 16:18:57 +0000 Subject: lisp: fix api_format Type: fix Ticket: VPP-1885 Fixes: 58db6e1 Signed-off-by: Florin Coras Change-Id: I6431e49b315e09490fed8fd70ac53872836c6a09 (cherry picked from commit f3c1e4b61269cd93302073a631a2549f1aeb24d9) --- src/vat/api_format.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 7f361e0b7f8..ea79b9508b5 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -2958,7 +2958,7 @@ vl_api_one_eid_table_details_t_handler (vl_api_one_eid_table_details_t * mp) s = format (0, "%d", clib_net_to_host_u32 (mp->locator_set_index)); eid = format (0, "%U", format_lisp_eid_vat, - mp->deid, mp->seid, mp->is_src_dst); + &mp->deid, &mp->seid, mp->is_src_dst); vec_add1 (eid, 0); print (vam->ofp, "[%d] %-35s%-20s%-30s%-20d%-20d%-10d%-20s", @@ -3007,7 +3007,7 @@ vl_api_one_eid_table_details_t_handler_json (vl_api_one_eid_table_details_t else { eid = format (0, "%U", format_lisp_eid_vat, - mp->deid, mp->seid, mp->is_src_dst); + &mp->deid, &mp->seid, mp->is_src_dst); vec_add1 (eid, 0); vat_json_object_add_string_copy (node, "eid", eid); vec_free (eid); @@ -3031,9 +3031,9 @@ vl_api_one_stats_details_t_handler (vl_api_one_stats_details_t * mp) u8 *seid = 0, *deid = 0; ip46_address_t lloc, rloc; - deid = format (0, "%U", format_lisp_eid_vat, mp->deid, 0); + deid = format (0, "%U", format_lisp_eid_vat, &mp->deid, 0, 0); - seid = format (0, "%U", format_lisp_eid_vat, mp->seid, 0); + seid = format (0, "%U", format_lisp_eid_vat, &mp->seid, 0, 0); vec_add1 (deid, 0); vec_add1 (seid, 0); @@ -3079,9 +3079,9 @@ vl_api_one_stats_details_t_handler_json (vl_api_one_stats_details_t * mp) node = vat_json_array_add (&vam->json_tree); vat_json_init_object (node); - deid = format (0, "%U", format_lisp_eid_vat, mp->deid, 0); + deid = format (0, "%U", &format_lisp_eid_vat, mp->deid, 0, 0); - seid = format (0, "%U", format_lisp_eid_vat, mp->seid, 0); + seid = format (0, "%U", &format_lisp_eid_vat, mp->seid, 0, 0); vec_add1 (deid, 0); vec_add1 (seid, 0); -- cgit 1.2.3-korg