Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix API trace dump for tapv2
[vpp.git]
/
src
/
vpp
/
api
/
custom_dump.c
diff --git
a/src/vpp/api/custom_dump.c
b/src/vpp/api/custom_dump.c
index
99ad189
..
4c88b8f
100644
(file)
--- 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 ");
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);
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)
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)
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;
}
FINISH;
}