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 C7447A0579; Fri, 9 Apr 2021 13:05:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADE5C4069F; Fri, 9 Apr 2021 13:05:09 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 84AE14014D for ; Fri, 9 Apr 2021 13:05:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617966307; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AzIJPB1184PXA/Y2IK7Jh8rDVcQ5AXDbeHyPcUcjMck=; b=Cpz1V9kF8OX5HUyfUK4k1uxhtyMgMn4d004VQIuJYyvAHKaIhJTjwm/vxcudaDE1i37T4Q PvT03M2PmGkbZZGEZU7P8zGYALpvUgb6q6PzfeVqPDyIXA7u6U7tO+tqqlLW6IOtJ3v3xu Ctt7jsFKKgLVixYEE2MLR6rweLQeUvs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-354-m16bsjj_OE6LYG-x4mAydw-1; Fri, 09 Apr 2021 07:05:03 -0400 X-MC-Unique: m16bsjj_OE6LYG-x4mAydw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B984A1020C21; Fri, 9 Apr 2021 11:05:02 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id ABE795B4A8; Fri, 9 Apr 2021 11:05:00 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: arybchenko@solarflare.com, l.wojciechow@partner.samsung.com, thomas@monjalon.net Date: Fri, 9 Apr 2021 13:04:50 +0200 Message-Id: <20210409110453.20078-1-david.marchand@redhat.com> In-Reply-To: <20200626114751.22523-1-david.marchand@redhat.com> References: <20200626114751.22523-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH v3 0/3] Track log level changes 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" Here is a little series, following RFC [1]. No change in behavior expected, but reviews welcome ! :-) 1: https://patchwork.dpdk.org/project/dpdk/list/?series=10632 Changes since v2: - rebased on main, - updated log message in patch 2, Changes since v1: - some cleanup in patch 1, - some precision in description of patch 2, Changes since RFC: - added unit test, - logged level changes in rte_log_register, - fixed double evaluation of --log-level options, -- David Marchand David Marchand (3): test/log: check levels log: track log level changes eal: fix evaluation of log level option app/test/test_logs.c | 51 ++++++++++++++++- lib/librte_eal/common/eal_common_log.c | 79 +++++++++++++------------- lib/librte_eal/freebsd/eal.c | 4 ++ lib/librte_eal/linux/eal.c | 4 ++ lib/librte_eal/windows/eal.c | 4 ++ 5 files changed, 102 insertions(+), 40 deletions(-) -- 2.23.0