From 222ff2beafe238fe47c4bd059b2ab11482d520f2 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Tue, 3 Sep 2024 10:45:00 +0200 Subject: api: fix endian issue for api trace save-json Type: fix Fixes: 1a319aadc68c218f741a7cb23acbe70c4addae92 Change-Id: I471e61176fc52421cf91e7989185755fb0355158 Signed-off-by: Ole Troan --- src/vlibapi/api_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c index 79064b292c9..1f02aefe88a 100644 --- a/src/vlibapi/api_shared.c +++ b/src/vlibapi/api_shared.c @@ -230,7 +230,7 @@ vl_msg_api_trace_write_one (api_main_t *am, u8 *msg, FILE *fp) if (m && m->endian_handler) { - m->endian_handler (tmpmem, 1); + m->endian_handler (tmpmem, 0 /* host endian */); } if (m && m->tojson_handler) -- cgit 1.2.3-korg