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 0ED66A0C4C; Sat, 23 Oct 2021 08:17:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C3064069D; Sat, 23 Oct 2021 08:17:21 +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 4CCE340150 for ; Sat, 23 Oct 2021 08:17:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634969839; 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=zD0TFN1bVtih907dptFoEm5UTLjxYD3pcMsBPr7tkmw=; b=PsaXRr4ZCMXKI1NR7KnBUSxsEBskbFcZjiiHv3eXYZSIf2D+9Q3+OAfUn9/7vKZ9BHtx+L KQcVtbPOpsQFpjlmWHoQBJe++qOpLkvDTZYA1lCEktSQof1BWH6JgmF+uz6vF0XwLjJKGr Y4RSD5E8QkNaXZUVzYtmnyeV7QjJ6h4= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-334-gVE8if-SPVuQSI6UyxMv3A-1; Sat, 23 Oct 2021 02:17:17 -0400 X-MC-Unique: gVE8if-SPVuQSI6UyxMv3A-1 Received: by mail-lf1-f69.google.com with SMTP id z1-20020a056512308100b003ff78e6402bso2083025lfd.4 for ; Fri, 22 Oct 2021 23:17:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zD0TFN1bVtih907dptFoEm5UTLjxYD3pcMsBPr7tkmw=; b=acO1F5O8kkqQW6LoPzCn4Tx6wBmWmIE0B8QVVL07rh9AFGslb5cYtsh7w7Mg4lulWS oe/jiZUHZBAc/Lw9pMsdecx40LHxfMTK/eyY9H12NPeTUBtSuYoM3sixZKJQKrmkH+BB 0pEDtHkVRNzjLRQXXbh4zOEpPbHvcdqRXhiIy3/VPaaAPmf7EjjdIHU0ihWmgO6uet80 FmsfxjnVqr2sTFhy0/8bic1y0giBNmo/+6bvI4E9wykh6dhjFa0btXgARcpt50CUb8hK wqbhyUkJNXrx0jAZIrl6mKmLhb9616XAxsf51+eZ7sJ2DdvZQCgOAT1T2jl4I9gudMZF +Gbw== X-Gm-Message-State: AOAM5337480AKtFjRZZLs2FGjq8aBCWin55lnVvkUZ5Df7dHuhjJYpdH DO3Yjphqbvf+2nsgiVdm5/hj6JcquTYOthgWCR2r8dL6Uf3zkS7/dnQNAA1o71M1NOIkPIrkIBm PwohF92qXG+mXdbwGy54= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr4050968lfa.499.1634969836441; Fri, 22 Oct 2021 23:17:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE3YtjN3SMcZ4nONBI+v0XORDdNat3+nuFwXmv3PD3b5lb7W3kILMAxSFOP9VJczo7EOR/eGvRQlubX0Ul37M= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr4050952lfa.499.1634969836194; Fri, 22 Oct 2021 23:17:16 -0700 (PDT) MIME-Version: 1.0 References: <20211005123012.264727-1-xuemingl@nvidia.com> <20211020154739.2514499-1-xuemingl@nvidia.com> <20211020154739.2514499-4-xuemingl@nvidia.com> In-Reply-To: <20211020154739.2514499-4-xuemingl@nvidia.com> From: David Marchand Date: Sat, 23 Oct 2021 08:17:04 +0200 Message-ID: To: Xueming Li Cc: dev , Gaetan Rivet , Thomas Monjalon , Lior Margalit 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 v5 3/3] test/devargs: add devargs test cases 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 Wed, Oct 20, 2021 at 5:48 PM Xueming Li wrote: > + kvlist = rte_kvargs_parse(args, NULL); > + if (kvlist == NULL) { > + printf("rte_devargs_parse(%s) %s_str: %s not parsed\n", > + devargs, layer, args); > + return -1; > + } > + if ((int)kvlist->count != n) { > + printf("rte_devargs_parse(%s) %s_str: %s kv number %u, not %d\n", > + devargs, layer, args, kvlist->count, n); > + return -1; > + } > + return 0; > +} Missing some rte_kvargs_free(). Can you send a fix? Thanks. -- David Marchand