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 826B1A0579; Fri, 9 Apr 2021 11:31:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C0CF406A3; Fri, 9 Apr 2021 11:31:53 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mails.dpdk.org (Postfix) with ESMTP id B71FE4014D for ; Fri, 9 Apr 2021 11:31:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617960711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AKuMlXrg1nWGhPT8kDBC0M3yJAM019OCCDAEtwtbCWY=; b=APYFOkdnqX2ygMeiEaFOSVER2qUw9clqVbqndZQPn1WomK81FOxmX4wgv3v+iWPllHD9+L BkWgi0B57LU7P1Un3foyeCS0s5vldx5ugL3IXJmo6DMVa92vvZUzCqBRantkZ9/mqE+MyA r3t6v4lktU0iDZMOh+Z7eXSuyhtjY3Q= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-488-LkDL_fLHMdeOxds3bZvNdA-1; Fri, 09 Apr 2021 05:31:47 -0400 X-MC-Unique: LkDL_fLHMdeOxds3bZvNdA-1 Received: by mail-vk1-f198.google.com with SMTP id a141so1025094vka.22 for ; Fri, 09 Apr 2021 02:31:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AKuMlXrg1nWGhPT8kDBC0M3yJAM019OCCDAEtwtbCWY=; b=kNlGRZUrvFDFrQ5LjcHD1EY/yvOzRiUolMFIHy2S4AXGbAWsuXNB2cjXygvFvwrvPL 8fM4z5sQt6eqSExp3jisN3Qd4RutaL2E37u9zznqJUSNriTWQKRcFCXxDqLurN+TPcVN X5DCBXz91w7KcJbQ3TTqNNbCbYFMYRUnYUK0gj4GMOedhGai85to/08CpY1obLltHd/b YlPHwGTfCII2F53oINdzNLJMDheWqxuvla2WnsdMEGHpFGgAJGC0bUXE+pJWpbVTsWnG CDH3lX3/4ZOjWUC/JxF69HIuVztKnw/xNrr+/4azdNkavJGbEcZrMkY7JhtjG/o1CyvZ JivQ== X-Gm-Message-State: AOAM533929i/C7ktyHLTKnlnYWLJ0vYetY+3fTu/CQs4cXImEz76hCFT l7sSbiPUlibOFILaxgMLpwpPLJxtnKs72cZiHraQ7lByIFxAyrPQ3WYuHX9Mv8aOU8rPwnopr8r BcXszmB/Gu1TS3wRQltc= X-Received: by 2002:a1f:d283:: with SMTP id j125mr10175244vkg.9.1617960706896; Fri, 09 Apr 2021 02:31:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBZppO75rbpjikOUgds4bPT4bKqUYlw5ELdDWX2JY/j/bZY3nw5bztBVHVaNPX+cGZje/5s7gklsw/BsVHLqU= X-Received: by 2002:a1f:d283:: with SMTP id j125mr10175232vkg.9.1617960706586; Fri, 09 Apr 2021 02:31:46 -0700 (PDT) MIME-Version: 1.0 References: <20210405193000.1113542-1-thomas@monjalon.net> <20210408164713.3455145-1-thomas@monjalon.net> <20210408164713.3455145-5-thomas@monjalon.net> In-Reply-To: <20210408164713.3455145-5-thomas@monjalon.net> From: David Marchand Date: Fri, 9 Apr 2021 11:31:35 +0200 Message-ID: To: Thomas Monjalon Cc: dev , Bruce Richardson , Andrew Rybchenko , Ray Kinsella , Neil Horman Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v7 4/4] log: add option argument help 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 Sender: "dev" On Thu, Apr 8, 2021 at 6:47 PM 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 > Acked-by: Bruce Richardson > Acked-by: Andrew Rybchenko Reviewed-by: David Marchand -- David Marchand