From: Pavan Nikhilesh Date: Mon, 16 Apr 2018 10:46:31 +0000 (+0530) Subject: app/eventdev: fix typos in timer adapter options X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9e596d880fd5b71ca0b9e9e5539f9dc5b99ff77a;p=dpdk.git 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 Signed-off-by: Pavan Nikhilesh --- diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c index 5f311a5700..cfa43a1655 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 c059f7084e..1bc7ea0f6b 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; }