From patchwork Wed Nov 15 15:45:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xueming Li X-Patchwork-Id: 31384 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 753241B1C3; Wed, 15 Nov 2017 16:46:36 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 1C0F81B1B7 for ; Wed, 15 Nov 2017 16:46:32 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 15 Nov 2017 17:46:27 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (dev-r630-06.mtbc.labs.mlnx [10.12.205.180]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id vAFFkQ94005045; Wed, 15 Nov 2017 17:46:27 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (localhost [127.0.0.1]) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id vAFFkQSD009000; Wed, 15 Nov 2017 23:46:26 +0800 Received: (from xuemingl@localhost) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id vAFFkQmt008999; Wed, 15 Nov 2017 23:46:26 +0800 From: Xueming Li To: Olivier Matz , Jingjing Wu Cc: Xueming Li , dev@dpdk.org Date: Wed, 15 Nov 2017 23:45:44 +0800 Message-Id: <20171115154545.8936-3-xuemingl@mellanox.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20171115154545.8936-1-xuemingl@mellanox.com> References: <20171115154545.8936-1-xuemingl@mellanox.com> Subject: [dpdk-dev] [PATCH 2/3] app/testpmd: support command echo in CLI batch loading 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" Use first bit of verbose_level to enable CLI echo of batch loading. Signed-off-by: Xueming Li --- app/test-pmd/cmdline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f5a483ad7..b40fe1ac7 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -15853,7 +15853,8 @@ cmdline_read_from_file(const char *filename) { struct cmdline *cl; - cl = cmdline_file_new(main_ctx, "testpmd> ", filename); + cl = cmdline_file_new(main_ctx, "testpmd> ", filename, + verbose_level & 0x8000); if (cl == NULL) { printf("Failed to create file based cmdline context: %s\n", filename);