summaryrefslogtreecommitdiff
path: root/examples/netmap_compat
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2014-06-21 00:34:30 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-06-27 02:31:08 +0200
commite8ed6c78177fbbafa326d9efc590a51705848200 (patch)
tree7e98cac5a638c6e1cabf1ac477b31300575c534d /examples/netmap_compat
parente9199e82fcd210a64d0c34ebcab78d714dc4b453 (diff)
downloaddpdk-draft-windows-e8ed6c78177fbbafa326d9efc590a51705848200.zip
dpdk-draft-windows-e8ed6c78177fbbafa326d9efc590a51705848200.tar.gz
dpdk-draft-windows-e8ed6c78177fbbafa326d9efc590a51705848200.tar.xz
eal: fix usage of printf-like functions
Mark the rte_log, cmdline_printf and rte_snprintf functions as being printf-style functions. This causes compilation errors due to mis-matched parameter types, so the parameter types are fixed where appropriate. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'examples/netmap_compat')
-rw-r--r--examples/netmap_compat/lib/compat_netmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_compat/lib/compat_netmap.c
index 946fab4..190151e 100644
--- a/examples/netmap_compat/lib/compat_netmap.c
+++ b/examples/netmap_compat/lib/compat_netmap.c
@@ -717,8 +717,8 @@ rte_netmap_init_port(uint8_t portid, const struct rte_netmap_port_conf *conf)
if (ret < 0) {
RTE_LOG(ERR, USER1,
- "Couldn't configure TX queue %hhu of "
- "port %hu\n",
+ "Couldn't configure TX queue %"PRIu16" of "
+ "port %"PRIu8"\n",
i, portid);
return (ret);
}
@@ -728,8 +728,8 @@ rte_netmap_init_port(uint8_t portid, const struct rte_netmap_port_conf *conf)
if (ret < 0) {
RTE_LOG(ERR, USER1,
- "Couldn't configure RX queue %hu of "
- "port %hhu\n",
+ "Couldn't configure RX queue %"PRIu16" of "
+ "port %"PRIu8"\n",
i, portid);
return (ret);
}