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 AA337A0526; Tue, 21 Jul 2020 20:23:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FED61C0AD; Tue, 21 Jul 2020 20:23:02 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 3F61D1C037 for ; Tue, 21 Jul 2020 20:22:57 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id s26so11117459pfm.4 for ; Tue, 21 Jul 2020 11:22: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=/1V6xYLK+ALnDYRVtd4wKn0htZPkeHIvu9qpotfK7So=; b=1gAOiH975hWVK8uLSrDnInFvyTeJ90lviqRYJuryNTRAecIc82W577Ch/DgpSQow3l WAVE4HrRQnSHxo6AKX6DaEJHNoGDpG3nr9E9diE8FUwL4k8IvYoEiFEcWrnc/+tbfCqh mWMgeoKwtsFukjpg7GEC6Qjw7uiwuT40eKTBCwWIT8pgBZIazXM4KSSOfMjvONfP6VL2 ji9qUmVLXO8OvKuIW3npR+9Gqsyu7Agok05qv/gdIqkbZUaXDG4iW74JOpgYaNxCLsTL 4kCOn0/KLBZHqbI4L2HVgKl1uC6ERQsOnBt0t3ywxaFb/VcdQNoFw1lJ2UO55cGqEAvg uzmg== 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=atX7dBi6fLiejuKb3Wu27rrhyd5RlJe+pe5y1TV0Avm9knMDhw6aDTqZWH09YGzX4/ DhWN/v6/DOeFCTWQdG2uRN2Jor/fmnqiNoVuZ32uLm+CvIE1q+sVZYFds1RKh0mLmjz1 HNe79gHTqDXlh/Dhy9lphct0ybWbl/vakTDhPlAGWoFFNUe+Od/WDBkPixnx9cB0ahb0 2K5FCxhiKtiu6oN0cwD3EFYVgMlatgQjrHtzLlkgaPZnvezVSojrP4s2ndtzzu8bx/b5 1cC9KLI3vyPJHc/ihj7r2NJO06G1tVpyVFOKftR52IlUnamg/HLx00tuiuHlRv+TsUzV UZVg== X-Gm-Message-State: AOAM533ce/3PlVhCzP8EJhX/5koeW2dpXGZSQgzGeB23JP5BnF+NDK4U NSWqtE5o7ckalmb1o2hUYAxsYBoxTAq35Q== X-Google-Smtp-Source: ABdhPJzUmoLKnFCl4gLfwHo+6KFf3fZ+IrMkodMNz368mQePBq5pZCEVcBxjFPEFmMzfzd0ZuBzPzA== X-Received: by 2002:a65:4c0b:: with SMTP id u11mr24123331pgq.383.1595355775835; Tue, 21 Jul 2020 11:22:55 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 76sm21434031pfu.139.2020.07.21.11.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 11:22:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal Date: Tue, 21 Jul 2020 11:22:37 -0700 Message-Id: <20200721182242.5366-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200721182242.5366-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> <20200721182242.5366-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 3/8] 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