app/testpmd: fix show port info routine