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 1E2EFA0597 for ; Thu, 9 Apr 2020 10:27:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E064D1C1E0; Thu, 9 Apr 2020 10:27:01 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 318051C1B9 for ; Thu, 9 Apr 2020 10:26:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586420818; 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=a/pgxvsvW4hvZgPfe+9lLCZ8qv62vTiJBZ91EKD79hU=; b=iTJXRdmM4OgxdEGQrhGdnmX1+tGGNuwV/6yUK7W5J9b0Ei9uxSvCj0TMbMzapbkVpL+j8p LsgE/WzUZnjEXPifDooL+9w+0SEuNOiHxNzgaC8Qni/VE4LFdjzOUEzW/RO+zE7kpnuGXY s9SPyEyjwha4KcDlu2Q35LLgf7QvuWQ= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-135-ida6fSktOWiOkIEuX4vfFQ-1; Thu, 09 Apr 2020 04:26:55 -0400 X-MC-Unique: ida6fSktOWiOkIEuX4vfFQ-1 Received: by mail-vk1-f197.google.com with SMTP id e69so1240861vke.11 for ; Thu, 09 Apr 2020 01:26:55 -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=xzyVuw+rFrIRwzhHeQOiyh3sGfGUiuSC1rq3wM9Dp1A=; b=AoaX06ruVqUmyv536ues/ORf2scu9YL/Mw4LI9Uj8NXjUbxMw7WcTQMZjvy1/rDlwi muBo0cJP2Kaajr5zY06H1LmFnzglZ/2o2QZZNO3iB394XP3kh+9/unHiebTwkqFyn9c4 paMqZHO8eyX808N/9mPbqAcIhL1LycMQt9mEi1Y295uFRDofqttBR492mvs0aHCHmYlU d0M6tE2PPy6hjpxZt2f6oGUfUKn6UutNC0sFhJudsO2xoMSQsSdEHKPOc9TxG8JprvPm HzFpBqYgbr+nGkieAfoSmzuXyIdB2EuV3TbI8tGc8XOJgqc/ELgr81u1rIcJ9TNmgneK jQFg== X-Gm-Message-State: AGi0PuZWDF7oscQGZNiz0bgq4kkmWc+fHkDKvmEMKO+jnIe0+vckfg8G enY0sBt/cY1LKrgx2iraTu1GWWDBob6BlIVH8N4Ady/PI9uu00DVsDeCsZ8EPME6hV1MZN66J1K LJws2eBUoUBlehru5Z6hANeA= X-Received: by 2002:a9f:2204:: with SMTP id 4mr8378126uad.87.1586420814645; Thu, 09 Apr 2020 01:26:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKX7jjNigCAJDpW645lJJLLMvd6Pfn16zacZhEXhxQY+ZYmweVvcKal6CMZ2qoMnfMDBEpusevBMBH9+weRxcs= X-Received: by 2002:a9f:2204:: with SMTP id 4mr8378122uad.87.1586420814454; Thu, 09 Apr 2020 01:26:54 -0700 (PDT) MIME-Version: 1.0 References: <20200407224758.57459-1-thomas@monjalon.net> In-Reply-To: <20200407224758.57459-1-thomas@monjalon.net> From: David Marchand Date: Thu, 9 Apr 2020 10:26:43 +0200 Message-ID: To: Thomas Monjalon Cc: dev , ivan.malov@oktetlabs.ru, Andrew Rybchenko , Stephen Hemminger , dpdk stable , Ferruh Yigit X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] log: fix level picked with globbing on type register X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, Apr 8, 2020 at 12:48 AM Thomas Monjalon wrote= : > > When a log type is registered, the level can be picked > by matching saved options. > The check of fnmatch globbing result was reversed. > > The same bug was already fixed in a similar function. > This one is acting in log type register function. > > Note: this function rte_log_register_type_and_pick_level() > is not used a lot and could be merged with rte_log_register(). Same fix as a patch I sent quite some time ago and left behind.. https://patchwork.dpdk.org/patch/57742/ I left it in a series I wanted to work on later... Anyway, this fix is needed. I suppose we are missing a unit test too. --=20 David Marchand