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 99422A052B; Tue, 28 Jul 2020 21:14:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD01F1C02E; Tue, 28 Jul 2020 21:13:51 +0200 (CEST) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id B21A41BFF5 for ; Tue, 28 Jul 2020 21:13:46 +0200 (CEST) Received: by mail-pj1-f68.google.com with SMTP id a9so402428pjd.3 for ; Tue, 28 Jul 2020 12:13:46 -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=wyS5ykbgiVEeYH7w+nds5hqGkfX8Uy3ad3aKtMnJk3qzIohfV8CZsr1UoV0inQk6Qk cgL4n4kWq+TDPjqxG7+20UEMXasuB6Xwqh+ZtrRuGht5V498w/EjolStamXBc8s/Bwsy yPkCTHM699yXeYLAp7XrbQrOxzDg9xJlmm1BwDWa9H51t2Fj5JBbuJY0IGW1sKEN3CP6 gncDbsFGqxoFWeTmfjO4xkoq8r8PRbStSIC7cdaEGvDE/MaBJt5zeYpBy+FHtPC898SU f6lrtMSY8O7cdxUOrDvDcl+aChaEu8cuZaLkAvFRlI0ItwQMrEp1rmetRPcg9K4sfcB3 ZJ5A== 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=YQR4gfgZeEiZOLZ1WONFu14B6tg51wZq4ecUced/LCPavFpqtaBLWSY9fIUGENg5g3 zIbRqxxTP8SZvQGpsJvBmZT/s7U734Y66mgEW4LCLIl1IE4Umuob2Xv1sR9D7++b7hX2 YfhLo0Lbl5N+QVaGrooYHqEKovUVKjtNF/DlvKfFGvOwasoyWXY7xBQ+BT8fhyZlf7rF W2cOnD2yx1xCVxO3B3EELxJemEj+yY8siDbCnMoXJKBRhc2HVsbIVKBV9gmTT2MVYIDe ZzURW7pMqWxR7l6lZhtBANCYsvxElKkqSEEpz2oP9DXeYNnPqCgGjpdDNPmxbfHc5VdJ ElCg== X-Gm-Message-State: AOAM533nRC+Z8XG2rOLFzqrdaqtj0KUDxXvTvUUiqTjKEEjuTqaDiUyS Tozcj8JR9Hh308F5gjcg0QL76tJE1nZagQ== X-Google-Smtp-Source: ABdhPJxXqBqNSvD2jWZ8qKphSJ7mZHG5pLVoPTJ7c1CoujL1lBwsRfUdKU9G5ffMPrVhOUGkEsAz5g== X-Received: by 2002:a17:902:b20a:: with SMTP id t10mr23674797plr.185.1595963625530; Tue, 28 Jul 2020 12:13:45 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id x66sm19045748pgb.12.2020.07.28.12.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 12:13:44 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal Date: Tue, 28 Jul 2020 12:13:25 -0700 Message-Id: <20200728191330.20864-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728191330.20864-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> <20200728191330.20864-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 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