aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vpp/api/custom_dump.c8
-rw-r--r--test/framework.py2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 49fe2a8bd26..a51b6aa2dc6 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -1806,9 +1806,15 @@ static void *vl_api_cli_inband_t_print
(vl_api_cli_inband_t * mp, void *handle)
{
u8 *s;
+ u8 *cmd = 0;
+ u32 length = ntohl (mp->length);
- s = format (0, "SCRIPT: cli_inband ");
+ vec_validate (cmd, length);
+ clib_memcpy (cmd, mp->cmd, length);
+ s = format (0, "SCRIPT: exec %v ", cmd);
+
+ vec_free (cmd);
FINISH;
}
diff --git a/test/framework.py b/test/framework.py
index e2b4d7bd566..bf21c57d199 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -474,7 +474,7 @@ class VppTestCase(unittest.TestCase):
self.logger.info("Moving %s to %s\n" % (tmp_api_trace,
vpp_api_trace_log))
os.rename(tmp_api_trace, vpp_api_trace_log)
- self.logger.info(self.vapi.ppcli("api trace dump %s" %
+ self.logger.info(self.vapi.ppcli("api trace custom-dump %s" %
vpp_api_trace_log))
else:
self.registry.unregister_all(self.logger)