app/testpmd: allow log level on command line
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Aug 2019 02:51:52 +0000 (19:51 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Aug 2019 13:40:38 +0000 (15:40 +0200)
commit9201806e9799943b61344305b12c655b153565db
tree1fea759f193e505c15e16ce5a703118295ea6d68
parent6f3f0acd951bdde31e0cdd2e9498059dddfe6ed5
app/testpmd: allow log level on command line

Since testpmd registers log type after processing command
line arguments, it is not possible to do:
  # testpmd --log-level='testpmd:info' ...

Fix this by initializing logtype first.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
app/test-pmd/testpmd.c