Signed-off-by: Gaetan Rivet <gaetan.ri...@6wind.com> --- lib/librte_kvargs/rte_kvargs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/librte_kvargs/rte_kvargs.c b/lib/librte_kvargs/rte_kvargs.c index 9662375e8..d6b187aac 100644 --- a/lib/librte_kvargs/rte_kvargs.c +++ b/lib/librte_kvargs/rte_kvargs.c @@ -3,10 +3,10 @@ * Copyright(c) 2014 6WIND S.A. */ +#include <stdio.h> #include <string.h> #include <stdlib.h> -#include <rte_log.h> #include <rte_string_fns.h> #include "rte_kvargs.h" @@ -29,7 +29,7 @@ rte_kvargs_tokenize(struct rte_kvargs *kvlist, const char *params) */ kvlist->str = strdup(params); if (kvlist->str == NULL) { - RTE_LOG(ERR, PMD, "Cannot parse arguments: not enough memory\n"); + fprintf(stderr, "Cannot parse arguments: not enough memory\n"); return -1; } @@ -39,14 +39,14 @@ rte_kvargs_tokenize(struct rte_kvargs *kvlist, const char *params) i = kvlist->count; if (i >= RTE_KVARGS_MAX) { - RTE_LOG(ERR, PMD, "Cannot parse arguments: list full\n"); + fprintf(stderr, "Cannot parse arguments: list full\n"); return -1; } kvlist->pairs[i].key = strtok_r(str, RTE_KVARGS_KV_DELIM, &ctx2); kvlist->pairs[i].value = strtok_r(NULL, RTE_KVARGS_KV_DELIM, &ctx2); if (kvlist->pairs[i].key == NULL || kvlist->pairs[i].value == NULL) { - RTE_LOG(ERR, PMD, + fprintf(stderr, "Cannot parse arguments: wrong key or value\n" "params=<%s>\n", params); return -1; @@ -90,7 +90,7 @@ check_for_valid_keys(struct rte_kvargs *kvlist, pair = &kvlist->pairs[i]; ret = is_valid_key(valid, pair->key); if (!ret) { - RTE_LOG(ERR, PMD, + fprintf(stderr, "Error parsing device, invalid key <%s>\n", pair->key); return -1; -- 2.11.0