summaryrefslogtreecommitdiff
path: root/app/cmdline_test
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 /app/cmdline_test
parente9199e82fcd210a64d0c34ebcab78d714dc4b453 (diff)
downloaddpdk-e8ed6c78177fbbafa326d9efc590a51705848200.zip
dpdk-e8ed6c78177fbbafa326d9efc590a51705848200.tar.gz
dpdk-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 'app/cmdline_test')
-rw-r--r--app/cmdline_test/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/cmdline_test/commands.c b/app/cmdline_test/commands.c
index 66c8fb9..404f51a 100644
--- a/app/cmdline_test/commands.c
+++ b/app/cmdline_test/commands.c
@@ -321,7 +321,7 @@ cmd_get_history_bufsize_parsed(__attribute__((unused)) void *parsed_result,
struct cmdline *cl,
__attribute__((unused)) void *data)
{
- cmdline_printf(cl, "History buffer size: %u\n",
+ cmdline_printf(cl, "History buffer size: %zu\n",
sizeof(cl->rdl.history_buf));
}