From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2944742D8E; Thu, 29 Jun 2023 18:23:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 021D140EDB; Thu, 29 Jun 2023 18:23:00 +0200 (CEST) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id 20F9F406B7 for ; Thu, 29 Jun 2023 18:22:58 +0200 (CEST) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5577905ef38so391225a12.0 for ; Thu, 29 Jun 2023 09:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688055777; x=1690647777; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=GyswPvMvSMq/HLQ5kOPkSfYh2VsClW2vde9eQYB0xZ0=; b=piWFn24eUCXoZg23J1Y87C3yhlRpkLg0wqp/RYhsANLLGUZo5gvFsWqeSOLvEm30hZ 2te5BmG2+5LLJqyWou4vJUC3R1RPS/IECMnQoJ3YZAzID3gw1NDESI2dlyH3rrY1IE4S U6VX8ipRpPdz+I7BoqXtikfqQW0WEJykGRmJ9ruS0QNPM9VhCYYUIwy7XbGNPu1vdV3U o+cxfFzj74ZwSwSsfSRxnfNGnnW9jfe3UfiV1RJ/Kn1ZiINAQM8bVJRZiMLw0R9WkKpY 2TNDHktFCVEBOBVoQ2b4XpNzYAqh87Gy4Gz8bTpkHJnKmV07qZNKNQesw0SL9/q8J7fN Ohug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688055777; x=1690647777; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GyswPvMvSMq/HLQ5kOPkSfYh2VsClW2vde9eQYB0xZ0=; b=XPlaaPvLlcRfoVkAvwMQIKGZRzneFzE7RTxZ0m17s0yVzZ03GjdRI2q5j+8EEv54Jq jLRKZJYn6qt8RAclV8Q3iaU8xniinJGXDOlwbiHKRnfqSLJo7T/wNVAjAG8Xra46wbVc Czt+sUxZyO3dKmJaoD/8OMnABikSj2cNZ9kIVg/Z+m4oQMGKSNvxgrobiymoifjSLpEo xNu+RcctTCKrSjnNHBtgYTO5PIPiHoWrebVTrHVuDOlSLFVNRIeOJvAiYM2Hg3NzbBdy xUsVii7C2QyA3eyuBPcs0wAuAYsJ7RkqbkKqGMEwJyO2e9D3AXnbNysEPT998x7Q7KAM 1qGA== X-Gm-Message-State: AC+VfDw8b12P+tRgAi/xuFbMOswncGAq77QlDS/4vjQ/i07peXx4fu2P BIHt1/EHYvJHWbH+1iGPQ5BRnQ== X-Google-Smtp-Source: ACHHUZ6MalnkTrn3Kr3Sn+b3UNKiGofckZWiufO6y1WyUBgffgHkjKn21t9MLUit3nMqL3ZQhLWGGA== X-Received: by 2002:a05:6a20:4408:b0:121:7454:be2a with SMTP id ce8-20020a056a20440800b001217454be2amr143349pzb.45.1688055777296; Thu, 29 Jun 2023 09:22:57 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id o5-20020a656145000000b0052858b41008sm8136634pgv.87.2023.06.29.09.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 09:22:57 -0700 (PDT) Date: Thu, 29 Jun 2023 09:22:55 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org, david.marchand@redhat.com, Ray Kinsella , Neil Horman Subject: Re: [dpdk-dev] [PATCH 07/11] eal: add log level help Message-ID: <20230629092255.6b4a2e48@hermes.local> In-Reply-To: <20210309233116.1934666-8-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> <20210309233116.1934666-8-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 10 Mar 2021 00:31:11 +0100 Thomas Monjalon wrote: > The option --log-level was not completely described in the usage text, > and it was difficult to guess the names of the log types and levels. > > A new value "help" is accepted after --log-level to give more details > about the syntax and listing the log types and levels. > > The array "levels" used for level name parsing is replaced with > a (modified) existing function which was used in rte_log_dump(). > > The new function rte_log_list_types() is exported in the API > for allowing an application to give this info to the user > if not exposing the EAL option --log-level. > The list of log types cannot include all drivers if not linked in the > application (shared object plugin case). > > Signed-off-by: Thomas Monjalon In /usr/include/sys/syslog.h are some tables of strings for syslog values. Not sure how portable this is and across what versions.