api: fix endian issue for api trace save-json 22/41522/2
authorOle Troan <[email protected]>
Tue, 3 Sep 2024 08:45:00 +0000 (10:45 +0200)
committerDamjan Marion <[email protected]>
Thu, 5 Sep 2024 11:40:06 +0000 (11:40 +0000)
Type: fix
Fixes: 1a319aadc68c218f741a7cb23acbe70c4addae92
Change-Id: I471e61176fc52421cf91e7989185755fb0355158
Signed-off-by: Ole Troan <[email protected]>
src/vlibapi/api_shared.c

index 79064b2..1f02aef 100644 (file)
@@ -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)