aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMilan Lenco <milan.lenco@pantheon.tech>2018-05-04 09:00:18 +0200
committerFlorin Coras <florin.coras@gmail.com>2018-06-04 15:18:39 +0000
commit1f8697c4b68c81766a7b9734e816ebfccffb3edc (patch)
tree5bf7ffa0ad04c251c025ac3a8c466d338ca42d79 /src
parentf8db62a0016a3e1282bb02b5bdb167d8de4584d1 (diff)
Fix API trace dump for tapv2
Change-Id: Ib092da61ba037ea30c6f38ea692ef9f1ca0cd8e7 Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/api/custom_dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 99ad18978e5..4c88b8ff959 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -561,7 +561,7 @@ static void *vl_api_tap_create_v2_t_print
memset (null_mac, 0, sizeof (null_mac));
s = format (0, "SCRIPT: tap_create_v2 ");
- s = format (s, "id %u ", mp->id);
+ s = format (s, "id %u ", ntohl (mp->id));
if (memcmp (mp->mac_address, null_mac, 6))
s = format (s, "mac-address %U ",
format_ethernet_address, mp->mac_address);
@@ -585,9 +585,9 @@ static void *vl_api_tap_create_v2_t_print
if (mp->host_ip6_gw_set)
s = format (s, "host-ip6-gw %U ", format_ip6_address, mp->host_ip6_addr);
if (mp->tx_ring_sz)
- s = format (s, "tx-ring-size %d ", mp->tx_ring_sz);
+ s = format (s, "tx-ring-size %u ", ntohs (mp->tx_ring_sz));
if (mp->rx_ring_sz)
- s = format (s, "rx-ring-size %d ", mp->rx_ring_sz);
+ s = format (s, "rx-ring-size %u ", ntohs (mp->rx_ring_sz));
FINISH;
}