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 B3F8DA034E; Wed, 6 May 2020 21:38:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 860A11DAA7; Wed, 6 May 2020 21:37:59 +0200 (CEST) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id D16581DA9C for ; Wed, 6 May 2020 21:37:57 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id t9so1437362pjw.0 for ; Wed, 06 May 2020 12:37:57 -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=90iBiXV5XmX0SgVKgacby3wiPhsNz2j205u2CYgLpDs=; b=HqlWB1qAH5p9+ONeAAKq8Y/gdlw41sw7A8cACQ7I6UAlpabSAN7/rS2IO29KpwTzLr y4M7bBkJMdiT3P805GNVhPIKUN5nrNu99gvNd1Q2cdgSkYcPbgtAkzP0upaotGJteewI hoHEVVk/i/mYJEGe5jh/6PWMDp4dwl/riTrzIgrnzVIhkYlEBFpmlhmtDXw5Pdy4Pswu 0Xc+vM1rEuskJOUrBvg+dC0AxxozN/39gLqmz2n22YU/pRqtEHnpP5+58Gz+s/T9gxJt XeprGBWdp/oUtHS4RXK4TbWBDugTpD5vqQNHMh4692Sy6bqv1QtFgxff5PdQEl3LcIHy XEmQ== 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=90iBiXV5XmX0SgVKgacby3wiPhsNz2j205u2CYgLpDs=; b=UT2UglYJGESSVGHq0kMiVxX1ZqvP3rPs47Yo9QWCKhbbj31AghLprGPS4Q690/rWww ABVyD2Dwt6u4OVvfVsMMbEOL4YoIK/fjSdkanseHqWUSydm3Kebxm8mchWhD5cglYcgT 9VQZGLTyKpQST3FpWs/ofvzD/ff0DXJlWEM8dUH1ePpZjS/0ltlhzaXhpw1eyxPJUXfl dwX73zjqWrtiglD41EKxr9UiB0++o2hkHWEHO8NwxdlnhyjopJizAd14BKNreIwQulhF oJ6j0pE8awkM3MJqSSv1Cl4owKWYe/v74VbmV5XeE8pXnQqn76uFQg0ymksUHZLnhmb2 przw== X-Gm-Message-State: AGi0PuY2ZTXUCdlZfZqIjmTu2DaqRZO3ln5cSE8sppyMBQVQl+YauPB6 1A5OE5KedscyYRrZIy1oCptZUUjfZiG84g== X-Google-Smtp-Source: APiQypLdwDjuerSUs6CqZvtqmrG3zBI4KYS7yGB1JtLyHUAIS7C1ZVNO/PJYsSzdS3/JTO4UnKUHbQ== X-Received: by 2002:a17:90a:f98b:: with SMTP id cq11mr11604915pjb.193.1588793876620; Wed, 06 May 2020 12:37:56 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j5sm1832971pjf.0.2020.05.06.12.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 12:37:55 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maryam Tahhan , Reshma Pattan Date: Wed, 6 May 2020 12:37:37 -0700 Message-Id: <20200506193741.24117-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200506193741.24117-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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 --- 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.20.1