From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7922A0540; Mon, 13 Jul 2020 08:39:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 85A581D154; Mon, 13 Jul 2020 08:39:09 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 370141D14F for ; Mon, 13 Jul 2020 08:39:08 +0200 (CEST) IronPort-SDR: c9e6jesA7PhfNwg9w+QYzy8rZTslAKiAhV2/BBrLvyhJYRDz5YiR3qvJjJ6/0un96PGHDMk0B9 9b5mVr0s2UIQ== X-IronPort-AV: E=McAfee;i="6000,8403,9680"; a="213404194" X-IronPort-AV: E=Sophos;i="5.75,346,1589266800"; d="scan'208";a="213404194" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2020 23:39:07 -0700 IronPort-SDR: yjLZolaf5KC2H+1/P83d3oVJhD3j8Rlf2iK0nU0MgxZlBVuaJe31kh8a6ZJZsoK0DkxwRGA14F zO/5LhU8gthQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,346,1589266800"; d="scan'208";a="390091926" Received: from intel.sh.intel.com ([10.239.255.20]) by fmsmga001.fm.intel.com with ESMTP; 12 Jul 2020 23:39:05 -0700 From: Chenxu Di To: dev@dpdk.org Cc: beilei.xing@intel.com, wenzhuo.lu@intel.com, Chenxu Di Date: Mon, 13 Jul 2020 06:28:42 +0000 Message-Id: <20200713062842.49166-1-chenxux.di@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] app/testpmd: fix display issue in flow query X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fix the error line break in the display info of flow query Fixes: bdb1d61690f7 ("app/testpmd: support RSS config in flow query") Signed-off-by: Chenxu Di --- app/test-pmd/config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index fcbe6b6f7..7b254e484 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1425,7 +1425,10 @@ rss_config_display(struct rte_flow_action_rss *rss_conf) if (rss_conf->queue_num == 0) printf("none\n"); for (i = 0; i < rss_conf->queue_num; i++) - printf("%d\n", rss_conf->queue[i]); + if (i == rss_conf->queue_num - 1) + printf("%d\n", rss_conf->queue[i]); + else + printf("%d ", rss_conf->queue[i]); printf(" function: "); switch (rss_conf->func) { -- 2.17.1