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 681EBA0548; Wed, 15 Jul 2020 23:23:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97A9B1BE8E; Wed, 15 Jul 2020 23:22:44 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 2D74D1B6B4 for ; Wed, 15 Jul 2020 23:22:41 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id b92so3611322pjc.4 for ; Wed, 15 Jul 2020 14:22:41 -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=/1V6xYLK+ALnDYRVtd4wKn0htZPkeHIvu9qpotfK7So=; b=Lb25hoOSyTsdxvxUaqWOnuJ4VuXDx1gdRl5mU3SXr6U38KX6ymvrGrpnOPIwykaAbd jvQ3vs6BtoyEkpWja/wEaxHEBMfodiNXQmJRUcrad6UYSsLo11VtydcIxEyYSU4Qe/tm OSbs5KfMZ2IhPOzK0jrCaSRr/yLgGUhXzrjgYMhSy8kY+PT4fHFLaVRjIursVdbefVbF 06H2vHbwLm5AHIl1bIC/6ybPUhA8phiHW6uQCm24s84VX7CjrmRoJqi2KGHBb2eCRpBU XmqQpDaoqTaZqELh8toORRiVhj9szcin6pRn/Q/A6rrwGdMTrXuwkR0dgBioWWhDMQhg p7gA== 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=/1V6xYLK+ALnDYRVtd4wKn0htZPkeHIvu9qpotfK7So=; b=HO2I9NsJ1v6+dm/msvZ0iV3Uqp/xvua08HkINEB4ZArzkVyXAsbTWmoDFeukWwvnip eGyuczDWbhB3qp/5BVS84W4MDIJhHVQHbqJ2obXkhRgUmVp/s4xJJdycij3UvXGaLwYi OSPVOkSFVBxOnDdXpEzYRhSoHrjD75ufOIo2oJKgP4QTdCeARD7QgW7vF7hsqqNTdGdy A7irYjkvqpOqAytIw76HEMngGqPwkyv3YM1V1Ofy/u5gQezF2jXqkGwU/s53RusDg5kf kMIY7CBzYaUXvQWskAUXPzc+8ROTSbe5paRNEZ0+7BGojrMPgdbSb/OTn0CGCU9L6GQT FE1A== X-Gm-Message-State: AOAM533xY8hVfYh2JR41n8RHsZeJ6qv7/AzU84RpUuRpW3IArPdof6WZ 5LcP/LRuYGt6iHCWbBzYLFJV6w== X-Google-Smtp-Source: ABdhPJzjFtU5HBljOHCpSevl1cm0YE+lq/RwdAfG+1Pl0lWgkfoonfeODPJFeRa8EbWSbQc7Oqplwg== X-Received: by 2002:a17:90a:2e85:: with SMTP id r5mr1659169pjd.232.1594848160491; Wed, 15 Jul 2020 14:22:40 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s89sm2932600pjj.28.2020.07.15.14.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 14:22:39 -0700 (PDT) From: Stephen Hemminger To: maryam.tahhan@intel.com, reshma.pattan@intel.com, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Stephen Hemminger Date: Wed, 15 Jul 2020 14:22:24 -0700 Message-Id: <20200715212228.28010-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200715212228.28010-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> <20200715212228.28010-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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 049818bad51f..e4914191bef9 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1239,7 +1239,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 */ @@ -1253,18 +1254,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