app/testpmd: fix output format in flow query

This patch fix the error line break in the output format of flow query

Fixes: bdb1d61690 ("app/testpmd: support RSS config in flow query")

Signed-off-by: Chenxu Di <chenxux.di@intel.com>
Tested-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Chenxu Di 2020-07-14 01:37:21 +00:00 committed by Ferruh Yigit
parent 2bc3b95deb
commit d1d5d3e4b3

View File

@ -1421,11 +1421,12 @@ rss_config_display(struct rte_flow_action_rss *rss_conf)
}
printf("RSS:\n"
" queues: ");
" queues:");
if (rss_conf->queue_num == 0)
printf("none\n");
printf(" none");
for (i = 0; i < rss_conf->queue_num; i++)
printf("%d\n", rss_conf->queue[i]);
printf(" %d", rss_conf->queue[i]);
printf("\n");
printf(" function: ");
switch (rss_conf->func) {