summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>2018-04-16 16:16:31 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-04-16 18:06:27 +0200
commit9e596d880fd5b71ca0b9e9e5539f9dc5b99ff77a (patch)
tree193b816e62ae8c0cf40fd411e6d44d8b7e0f2f8d
parent52553263484a3ad3b24b9fa76b14aebbc4e8a526 (diff)
downloaddpdk-next-eventdev-9e596d880fd5b71ca0b9e9e5539f9dc5b99ff77a.zip
dpdk-next-eventdev-9e596d880fd5b71ca0b9e9e5539f9dc5b99ff77a.tar.gz
dpdk-next-eventdev-9e596d880fd5b71ca0b9e9e5539f9dc5b99ff77a.tar.xz
app/eventdev: fix typos in timer adapter options
The options names in code and doc are not the same. Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter") Suggested-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
-rw-r--r--app/test-eventdev/evt_options.c2
-rw-r--r--app/test-eventdev/evt_options.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c
index 5f311a5..cfa43a1 100644
--- a/app/test-eventdev/evt_options.c
+++ b/app/test-eventdev/evt_options.c
@@ -250,7 +250,7 @@ usage(char *program)
"\t--nb_timer_adptrs : number of timer adapters to use.\n"
"\t--timer_tick_nsec : timer tick interval in ns.\n"
"\t--max_tmo_nsec : max timeout interval in ns.\n"
- "\t--expiry_ns : event timer expiry ns.\n"
+ "\t--expiry_nsec : event timer expiry ns.\n"
);
printf("available tests:\n");
evt_test_dump_names();
diff --git a/app/test-eventdev/evt_options.h b/app/test-eventdev/evt_options.h
index c059f70..1bc7ea0 100644
--- a/app/test-eventdev/evt_options.h
+++ b/app/test-eventdev/evt_options.h
@@ -36,9 +36,9 @@
#define EVT_PROD_TIMERDEV_BURST ("prod_type_timerdev_burst")
#define EVT_NB_TIMERS ("nb_timers")
#define EVT_NB_TIMER_ADPTRS ("nb_timer_adptrs")
-#define EVT_TIMER_TICK_NSEC ("timer_tick_ns")
+#define EVT_TIMER_TICK_NSEC ("timer_tick_nsec")
#define EVT_MAX_TMO_NSEC ("max_tmo_nsec")
-#define EVT_EXPIRY_NSEC ("expiry_ns")
+#define EVT_EXPIRY_NSEC ("expiry_nsec")
#define EVT_HELP ("help")
enum evt_prod_type {
@@ -292,10 +292,10 @@ evt_dump_producer_type(struct evt_options *opt)
evt_dump("max_tmo_nsec", "%"PRIu64"", opt->max_tmo_nsec);
evt_dump("expiry_nsec", "%"PRIu64"", opt->expiry_nsec);
if (opt->optm_timer_tick_nsec)
- evt_dump("optm_timer_tick_ns", "%"PRIu64"",
+ evt_dump("optm_timer_tick_nsec", "%"PRIu64"",
opt->optm_timer_tick_nsec);
else
- evt_dump("timer_tick_ns", "%"PRIu64"",
+ evt_dump("timer_tick_nsec", "%"PRIu64"",
opt->timer_tick_nsec);
break;
}