eal: fix logs for '--lcores'
PATCH 1/1 eal: fix logs for '--lcores'
The argument is '--lcores' but it is being logged as '--lcore' in several places.
e.g.
$ dpdk-testpmd -l 8,10,12 --lcores 8,10,12 EAL: Option --lcore is ignored, because (-l) is set!
Fix the spelling in logs and tests.
Fixes 117eaa70584b ("eal: add error check for core options")
Signed-off-by Kevin Traynor <[email protected]>
--- app/test/test_eal_flags.c | 2 +- lib/eal/common/eal_common_options.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
app/test/test_eal_flags.c +1 -1
@@ -672,5 +672,5 @@ test_missing_c_flag(void) launch_proc(argv28) == 0 || launch_proc(argv30) == 0) {printf ("Error - " -"process ran without error with invalid --lcore flag\n" ); +"process ran without error with invalid --lcores flag\n" );return -1 ; }
lib/eal/common/eal_common_options.c +4 -4
@@ -1688,5 +1688,5 @@ eal_parse_common_option(int opt, const char *optarg,EAL_LOG (ERR ,"Option -c is ignored, because (%s) is set!" , (core_parsed ==LCORE_OPT_LST ) ?"-l" : - (core_parsed ==LCORE_OPT_MAP ) ?"--lcore" : + (core_parsed ==LCORE_OPT_MAP ) ?"--lcores" :"-c" );return -1 ;
@@ -1721,5 +1721,5 @@ eal_parse_common_option(int opt, const char *optarg,EAL_LOG (ERR ,"Option -l is ignored, because (%s) is set!" , (core_parsed ==LCORE_OPT_MSK ) ?"-c" : - (core_parsed ==LCORE_OPT_MAP ) ?"--lcore" : + (core_parsed ==LCORE_OPT_MAP ) ?"--lcores" :"-l" );return -1 ;
@@ -1902,8 +1902,8 @@ eal_parse_common_option(int opt, const char *optarg,if (core_parsed) { -EAL_LOG (ERR ,"Option --lcore is ignored, because (%s) is set!" , +EAL_LOG (ERR ,"Option --lcores is ignored, because (%s) is set!" , (core_parsed ==LCORE_OPT_LST ) ?"-l" : (core_parsed ==LCORE_OPT_MSK ) ?"-c" : -"--lcore" ); +"--lcores" );return -1 ; }
Signature · 1 line
2.45.0
Quoted 11 lines · Kevin Traynor
The argument is '--lcores' but it is being logged as '--lcore' in several places.
e.g.
$ dpdk-testpmd -l 8,10,12 --lcores 8,10,12 EAL: Option --lcore is ignored, because (-l) is set!Fix the spelling in logs and tests.
Fixes 117eaa70584b ("eal: add error check for core options")
and Fixes: 128ee4c26d87 ("app/test: add unit tests for --lcores option") (but no need for a v2 for this).
Quoted 1 line
Signed-off-by Kevin Traynor <[email protected]>
Reviewed-by David Marchand <[email protected]>
Thanks for the quick fix.
Signature · 1 line
David Marchand
David Marchand
AppliedQuoted 9 lines · David Marchand
Quoted 8 lines · Kevin Traynor
The argument is '--lcores' but it is being logged as '--lcore' in several places.
e.g.
$ dpdk-testpmd -l 8,10,12 --lcores 8,10,12 EAL: Option --lcore is ignored, because (-l) is set!
Quoted 8 lines
Quoted 3 lines
Fix the spelling in logs and tests.
Fixes 117eaa70584b ("eal: add error check for core options")Fixes 128ee4c26d87 ("app/test: add unit tests for --lcores option")Quoted 1 line
Signed-off-by Kevin Traynor <[email protected]>Reviewed-by David Marchand <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand