From: Xuelin Shi Date: Fri, 6 Feb 2015 01:29:20 +0000 (+0800) Subject: app/testpmd: fix port parsing in show port info command X-Git-Tag: spdx-start~9771 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3e0d91bf42831d419b9c0e35e173f026a547851e;p=dpdk.git app/testpmd: fix port parsing in show port info command The port number type should be consistent with librte_cmdline, else there is potential endian issue. Signed-off-by: Xuelin Shi Acked-by: Olivier Matz --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 590e427271..d5f31f26a5 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -5584,7 +5584,7 @@ cmdline_parse_token_string_t cmd_showport_what = TOKEN_STRING_INITIALIZER(struct cmd_showport_result, what, "info#stats#xstats#fdir#stat_qmap"); cmdline_parse_token_num_t cmd_showport_portnum = - TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, INT32); + TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, UINT8); cmdline_parse_inst_t cmd_showport = { .f = cmd_showport_parsed,