From 2959d42feb576c0e00c28c4e27658b25f6c783e9 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 22 Aug 2019 09:02:59 +0200 Subject: api: use string type for strings in memclnt.api Explicitly using string type in API allows for autogenerating tools to print strings instead of hex-dumping byte strings. Type: fix Signed-off-by: Ole Troan Signed-off-by: Klement Sekera Change-Id: I573962d6b34d5d10aab9dc6a5fdf101c9b12a6a6 Signed-off-by: Ole Troan --- src/vat/api_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vat/api_format.c') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 7efdadc103b..abce80550df 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -14990,7 +14990,7 @@ api_get_first_msg_id (vat_main_t * vam) } M (GET_FIRST_MSG_ID, mp); - clib_memcpy (mp->name, name, vec_len (name)); + vl_api_vec_to_api_string (name, &mp->name); S (mp); W (ret); return ret; -- cgit 1.2.3-korg