summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-05-28 12:37:56 +0200
committerOle Trøan <otroan@employees.org>2020-05-29 10:43:29 +0000
commitaeb18d37b4874c18ec0a64d1cd1c597707a67edc (patch)
tree32c465e4958bd051fbc3d56bbaf0cc66733a9602 /src
parente7df8cbb6d83533d0204bfbc1a0fe341f07d9741 (diff)
misc: fix the pretty print for api trace
Type: style Change-Id: I4ef8ba30be2696e8f63d5305027d2aa629cbdb88 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/api/custom_dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index edbd3b65e9d..c2704864336 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -1385,7 +1385,7 @@ static void *vl_api_add_node_next_t_print
s = format (0, "SCRIPT: add_node_next ");
- s = format (0, "node %s next %s ", mp->node_name, mp->next_name);
+ s = format (s, "node %s next %s ", mp->node_name, mp->next_name);
FINISH;
}
@@ -2520,9 +2520,9 @@ static void *vl_api_pg_create_interface_t_print
u8 *s;
s = format (0, "SCRIPT: pg_create_interface ");
- s = format (0, "if_id %d", (mp->interface_id));
- s = format (0, "gso-enabled %u", mp->gso_enabled);
- s = format (0, "gso-size %u", (mp->gso_size));
+ s = format (s, "if_id %d ", (mp->interface_id));
+ s = format (s, "gso-enabled %u ", mp->gso_enabled);
+ s = format (s, "gso-size %u", (mp->gso_size));
FINISH;
}
@@ -2533,8 +2533,8 @@ static void *vl_api_pg_capture_t_print
u8 *s;
s = format (0, "SCRIPT: pg_capture ");
- s = format (0, "if_id %d ", (mp->interface_id));
- s = format (0, "pcap %s", mp->pcap_file_name);
+ s = format (s, "if_id %d ", (mp->interface_id));
+ s = format (s, "pcap %s", mp->pcap_file_name);
if (mp->count != ~0)
s = format (s, "count %d ", (mp->count));
if (!mp->is_enabled)