git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: deprecate rte_snprintf
[dpdk.git]
/
examples
/
cmdline
/
commands.c
diff --git
a/examples/cmdline/commands.c
b/examples/cmdline/commands.c
index
fe82be5
..
8c6c11b
100644
(file)
--- a/
examples/cmdline/commands.c
+++ b/
examples/cmdline/commands.c
@@
-134,10
+134,10
@@
static void cmd_obj_del_show_parsed(void *parsed_result,
char ip_str[INET6_ADDRSTRLEN];
if (res->obj->ip.family == AF_INET)
char ip_str[INET6_ADDRSTRLEN];
if (res->obj->ip.family == AF_INET)
-
rte_
snprintf(ip_str, sizeof(ip_str), NIPQUAD_FMT,
+ snprintf(ip_str, sizeof(ip_str), NIPQUAD_FMT,
NIPQUAD(res->obj->ip.addr.ipv4));
else
NIPQUAD(res->obj->ip.addr.ipv4));
else
-
rte_
snprintf(ip_str, sizeof(ip_str), NIP6_FMT,
+ snprintf(ip_str, sizeof(ip_str), NIP6_FMT,
NIP6(res->obj->ip.addr.ipv6));
if (strcmp(res->action, "del") == 0) {
NIP6(res->obj->ip.addr.ipv6));
if (strcmp(res->action, "del") == 0) {
@@
-199,15
+199,15
@@
static void cmd_obj_add_parsed(void *parsed_result,
cmdline_printf(cl, "mem error\n");
return;
}
cmdline_printf(cl, "mem error\n");
return;
}
-
rte_
snprintf(o->name, sizeof(o->name), "%s", res->name);
+ snprintf(o->name, sizeof(o->name), "%s", res->name);
o->ip = res->ip;
SLIST_INSERT_HEAD(&global_obj_list, o, next);
if (o->ip.family == AF_INET)
o->ip = res->ip;
SLIST_INSERT_HEAD(&global_obj_list, o, next);
if (o->ip.family == AF_INET)
-
rte_
snprintf(ip_str, sizeof(ip_str), NIPQUAD_FMT,
+ snprintf(ip_str, sizeof(ip_str), NIPQUAD_FMT,
NIPQUAD(o->ip.addr.ipv4));
else
NIPQUAD(o->ip.addr.ipv4));
else
-
rte_
snprintf(ip_str, sizeof(ip_str), NIP6_FMT,
+ snprintf(ip_str, sizeof(ip_str), NIP6_FMT,
NIP6(o->ip.addr.ipv6));
cmdline_printf(cl, "Object %s added, ip=%s\n",
NIP6(o->ip.addr.ipv6));
cmdline_printf(cl, "Object %s added, ip=%s\n",