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 57330A0546; Tue, 6 Apr 2021 16:35:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B7D8140FDE; Tue, 6 Apr 2021 16:35:26 +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 059AF140FDD for ; Tue, 6 Apr 2021 16:35:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617719724; 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=oq+7ZUNk1ImT0biqR6w0qRrtIh1ZFPLqn1yBaCuJYIw=; b=Ta8B8H7QX1/5Hd0kEeccIbshyR/KOp3uY8duT4HBAFvo7+wDfEUxht4IWEahW92iCvcWka Yu5YzN8d9Vs6NwW4M1E76SWrSBZipu/ka3FOpzHYjSnMVJPBKGytGZJh6Nrmkx+fI4eO1D sz94yjKdchbLarvmSXAiDtCqric6GTM= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-474-pRedYWv3M8SLWtCKv1sSDA-1; Tue, 06 Apr 2021 10:35:23 -0400 X-MC-Unique: pRedYWv3M8SLWtCKv1sSDA-1 Received: by mail-ua1-f71.google.com with SMTP id w16so1937121uaj.1 for ; Tue, 06 Apr 2021 07:35:23 -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=oq+7ZUNk1ImT0biqR6w0qRrtIh1ZFPLqn1yBaCuJYIw=; b=cP8osmorfo9stPzSbSFMRQFdliBiPcGwDGaOQMsPvC+kgKj4ZimZUCu2FAlcCKn5Kn bbZW83LaRS+fYVIqcQzf1Yt/zoxtFS+wSuG2pyjL2sOEpNi9kyskpi7ghSngqB5O99Et JOlD04SqtiRlCocG6tO88BViBcLEWESduxq3LJ8VbIP3eF9S8o8VtOGj6v2KEdPkyS2H brPIrOxfmiQp/Ibrin+w98s81mQ+SxgNbjttxoMNU1Ju14ZYNx/dYhiDjLAKuAmggP0G I1uwZzWcAc8OcNyUL/yyh0e8iyYykqA87LzcqlNC/DNyfwnwqqyX7HC3PxvjHFwStqH+ 7yGg== X-Gm-Message-State: AOAM531TEgqTxB8nU+8/s4vslxUK/OKE3faTbIXIwZGPRiC1A1a7QY4N bnfunZgSlwLY6EslQ1MTVwfIxeFKM3y8tXZTJ8x2n1yGf1ZjTOZsSyzteInmKG1HrZzZuSQExhI O0msrqtRFvJZWjkH6vpI= X-Received: by 2002:ab0:3345:: with SMTP id h5mr2075923uap.41.1617719722646; Tue, 06 Apr 2021 07:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6MQ4OHllUPf9rVgDA2J6Iyx1CTiB7by4zy5n4OcNTQFEjGONe4w1F1sgtxPxG6EiyQWthR3ExwiU5R+Nod5Q= X-Received: by 2002:ab0:3345:: with SMTP id h5mr2075909uap.41.1617719722476; Tue, 06 Apr 2021 07:35:22 -0700 (PDT) MIME-Version: 1.0 References: <20210405193000.1113542-1-thomas@monjalon.net> <20210406131137.1732110-1-thomas@monjalon.net> <20210406131137.1732110-4-thomas@monjalon.net> In-Reply-To: <20210406131137.1732110-4-thomas@monjalon.net> From: David Marchand Date: Tue, 6 Apr 2021 16:35:11 +0200 Message-ID: To: Thomas Monjalon Cc: dev , Bruce Richardson , Andrew Rybchenko 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 v6 3/4] log: catch invalid level option number 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 Tue, Apr 6, 2021 at 3:12 PM Thomas Monjalon wrote: > > The parsing check for invalid log level was not trying to catch > irrelevant numeric values. > A log level 0 becomes a failure in parsing so it can be caught early. > A log level higher than the max (8) is accepted with a warning message. > > Signed-off-by: Thomas Monjalon > Acked-by: Bruce Richardson > Acked-by: Andrew Rybchenko Reviewed-by: David Marchand -- David Marchand