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 6E2EEA04B1; Thu, 24 Sep 2020 07:35:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C065A1DD4D; Thu, 24 Sep 2020 07:34:48 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 93A7C1DD1E for ; Thu, 24 Sep 2020 07:34:45 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id l71so1215368pge.4 for ; Wed, 23 Sep 2020 22:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2yHtxHSc5EjRPXaUsLL9YfypFsSCqPTscmgsN1WRpB0=; b=lpHVaCQ9300QdbRFoHHvTSqVyW/tUAl8GOHuQLKPOIHHbcy0+yGu+tgeot3QonawRq GnWmHCkDiQ4QcHSzaIcwDUgn+8yGCh/QL/jsl7GTiUvcWwtUf4c+m91MkzuewndslAMj rp6sb3h5nqQa7DUmvF8brOoLBFWO4k5UkT1Dvyuq3W8s+PaSAWar+gwQq3KqJzN1RD51 KtIpPkgBK3Zj/nmnTaWBNyFk8uR5aA3fCyXqA9Hv563ZsMw4PTIa0xXJdbnuC1f7BZKU ATJ/RHTfOKpd2BtT43E+nTc/leysoLvfSvjQVRfGSWBdbZJibtWK12H6oxeJw5MIokTH sZew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2yHtxHSc5EjRPXaUsLL9YfypFsSCqPTscmgsN1WRpB0=; b=BbKTF5Gk2OIMfRWULYfmxKYz9TesNajFIY0FXjHtY+z+ZPfYa4zxksjU+hKfFbey/X Avs4Kr/btqdt870t1RyGp8FtoSYRo2KcPzm3NGIO0nPkbb4VW+l1+iOC/lRzGTb6N30+ iW5emNA6K7+SqXffvSiyHJ4wUhkBfBVdI8WdhNO4pqmWW4f4UxkJLyBmfku/KfKl1b+4 SouI/VDDHmmVXmO+Bxaw+ekcPzWqehYc17PAOqaqsWar0EtEGzTXmhyaFaTD25jpbv+y fpmt3KHygPtuib5+pBpCBQbwezWy2A0FJ9U7EMaSKLWXOu4M32/rGBegmrsrMN9xfCyi ObXA== X-Gm-Message-State: AOAM533kwxB3ggNzSG0LsbUDCoZTiQB92W8kl6HNB/kAmwzren/XSpKc V0wKmamDDHNRkOcJoJtJUz98/LrmCq0khA== X-Google-Smtp-Source: ABdhPJxgM6idIvO2QZh8p1I6PA66BFvY9/I5cVVqoNhVBGGARD2U1nPlNhBCsgAqOcyULA8/LZkBmw== X-Received: by 2002:a63:df42:: with SMTP id h2mr2724374pgj.239.1600925684565; Wed, 23 Sep 2020 22:34:44 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v8sm1529609pgg.58.2020.09.23.22.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 22:34:43 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal Date: Wed, 23 Sep 2020 22:34:29 -0700 Message-Id: <20200924053433.12648-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200924053433.12648-1-stephen@networkplumber.org> References: <20200728191330.20864-1-stephen@networkplumber.org> <20200924053433.12648-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 3/7] app/proc-info: hide EAL info messages 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" The DPDK EAL info messages at the start of a diagnostic application are not helpful to end user. Suppress them by setting log-level by default. Signed-off-by: Stephen Hemminger Acked-by: Hemant Agrawal --- app/proc-info/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 6cf5bb4ea48a..66918a834877 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1243,7 +1243,8 @@ main(int argc, char **argv) char c_flag[] = "-c1"; char n_flag[] = "-n4"; char mp_flag[] = "--proc-type=secondary"; - char *argp[argc + 3]; + char log_flag[] = "--log-level=6"; + char *argp[argc + 4]; uint16_t nb_ports; /* preparse app arguments */ @@ -1257,18 +1258,19 @@ main(int argc, char **argv) argp[1] = c_flag; argp[2] = n_flag; argp[3] = mp_flag; + argp[4] = log_flag; for (i = 1; i < argc; i++) - argp[i + 3] = argv[i]; + argp[i + 4] = argv[i]; - argc += 3; + argc += 4; ret = rte_eal_init(argc, argp); if (ret < 0) rte_panic("Cannot init EAL\n"); argc -= ret; - argv += (ret - 3); + argv += ret - 4; if (!rte_eal_primary_proc_alive(NULL)) rte_exit(EXIT_FAILURE, "No primary DPDK process is running.\n"); -- 2.27.0