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 82A05A034E; Wed, 6 May 2020 21:58:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B3CC01DB0F; Wed, 6 May 2020 21:58:14 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id 891441DB05 for ; Wed, 6 May 2020 21:58:12 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id e6so1439650pjt.4 for ; Wed, 06 May 2020 12:58:12 -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=SUa+lLBeAWUZ7Si6jt/Ngbnz1JOkXodkj5QKanAT1Wj+sJpJRVkMv8vvRdlxXJ5izk L3kzukseq5Wk/6rE3a4NCdl+NZyZcM/i4uNVbGHoNZDfmI6IbUut2DasP6bY5d/Nf8Dc oz1iMPU6F1Xq/ETFWmpZFlQpXOA4Hl6a8ZUazMDpS5mffNVijzSASivjJZJAgplSYEny id4BheZdJ6ninUx14vke7JBnk5mkrYCtI/fQYto16oNDVt5nVIChtinKjzrAiLn4iyMl LmyqXS5zB4BXkjINHaWW74+/3DzsSgQqWRy5LvJ3oBZF/bhPHWQSi/DQ2rXZN+hiLl9w acmg== 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=Rk6260862tevFiIg189h9yHnh9gBmc4pWERgFNyMvto6JUumbol+fVTt737pMlpmTg fjric+rCTodZSmaflYYy4CYEk45RyshxgmMc3VPEIOpKiC4mFAwL/r2N6mDKjWVPvOaT 2iZM9QvIGlGg854VHdF8WvZRcKzuRU50ryqlKrotmMUtNQTYZBQ6ArbD1jsB9dB69Y7P pg880zrot1uWO6Smog1B4qPsgO/En1PpDOaLi6bUmw7vJkMvqFdQhtnko5AeKz/uZeTO XbWFnANFeq3ZQcAJFZ9vssEIIA8+/2QDMp2pidaKOi4cjjvGoaWzE6XieYGKBHZfVcSX xo8w== X-Gm-Message-State: AGi0PuZSeTYfLddGBLF3Mu6MD/U+WuSEk7G4C6KUJyc6GuLyoYzLVNHr EO8t0IjGX9utDM7bTDW/HPw5F1DgKC+dzw== X-Google-Smtp-Source: APiQypLdNtw3HIIpfOmLh58kQY2zNJVJcXQRZfzHcGo2xVhE5K+O10bnJktk1nvCFNMaITpBGVXQXg== X-Received: by 2002:a17:902:cb91:: with SMTP id d17mr9778696ply.129.1588795091149; Wed, 06 May 2020 12:58:11 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id w1sm2126238pgh.53.2020.05.06.12.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 12:58:10 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maryam Tahhan , Reshma Pattan Date: Wed, 6 May 2020 12:57:54 -0700 Message-Id: <20200506195758.27057-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200506195758.27057-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> <20200506195758.27057-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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