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]
/
lib
/
librte_cmdline
/
cmdline_parse_num.c
diff --git
a/lib/librte_cmdline/cmdline_parse_num.c
b/lib/librte_cmdline/cmdline_parse_num.c
index
832310d
..
0b9e4d0
100644
(file)
--- a/
lib/librte_cmdline/cmdline_parse_num.c
+++ b/
lib/librte_cmdline/cmdline_parse_num.c
@@
-358,7
+358,7
@@
cmdline_get_help_num(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int s
/* if (nd.type >= (sizeof(num_help)/sizeof(const char *))) */
/* return -1; */
/* if (nd.type >= (sizeof(num_help)/sizeof(const char *))) */
/* return -1; */
- ret =
rte_
snprintf(dstbuf, size, "%s", num_help[nd.type]);
+ ret = snprintf(dstbuf, size, "%s", num_help[nd.type]);
if (ret < 0)
return -1;
dstbuf[size-1] = '\0';
if (ret < 0)
return -1;
dstbuf[size-1] = '\0';