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
net/mlx5: prepare Direct Verbs for Direct Rule
[dpdk.git]
/
app
/
test-eventdev
/
evt_options.c
diff --git
a/app/test-eventdev/evt_options.c
b/app/test-eventdev/evt_options.c
index
af5c08b
..
46c074f
100644
(file)
--- a/
app/test-eventdev/evt_options.c
+++ b/
app/test-eventdev/evt_options.c
@@
-7,6
+7,7
@@
#include <inttypes.h>
#include <getopt.h>
#include <inttypes.h>
#include <getopt.h>
+#include <rte_string_fns.h>
#include <rte_common.h>
#include <rte_eventdev.h>
#include <rte_lcore.h>
#include <rte_common.h>
#include <rte_eventdev.h>
#include <rte_lcore.h>
@@
-120,7
+121,7
@@
evt_parse_timer_prod_type_burst(struct evt_options *opt,
static int
evt_parse_test_name(struct evt_options *opt, const char *arg)
{
static int
evt_parse_test_name(struct evt_options *opt, const char *arg)
{
- s
nprintf(opt->test_name, EVT_TEST_NAME_MAX_LEN, "%s", arg
);
+ s
trlcpy(opt->test_name, arg, EVT_TEST_NAME_MAX_LEN
);
return 0;
}
return 0;
}