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 F4228A0C41; Tue, 19 Oct 2021 14:53:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E33B44119C; Tue, 19 Oct 2021 14:53:16 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 0B19E4119B for ; Tue, 19 Oct 2021 14:53:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634647995; 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; bh=0gGH2TQze/j5n+MNGx349jDHDv+gwqItTV1pOBhoOUI=; b=Ra5XdURQCxaZNANw2Dc2aZ0Rrc5Wrs7k7WV/6wMzU/CPVxZicJf1yQzXBs43rebzkQyKUt v/zlL0lm6JcDAga8rLUzVG405jWVUTLowCI5uqrRZL01pLMJSt1BbOn2ihyIabOVjFyjwv XIYcWz787bF50cxboW6vt5rQt6PrqYo= 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-573-IsL90hTLP8KJLPMvHIz7aw-1; Tue, 19 Oct 2021 08:53:11 -0400 X-MC-Unique: IsL90hTLP8KJLPMvHIz7aw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6023D80F050; Tue, 19 Oct 2021 12:53:10 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id 845A319C79; Tue, 19 Oct 2021 12:53:08 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Neil Horman , Dmitry Kozlyuk , Stephen Hemminger , Bruce Richardson Date: Tue, 19 Oct 2021 14:52:30 +0200 Message-Id: <20211019125230.27480-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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] usertools/pmdinfo: fix plugin auto scan 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" Migration to argparse was incomplete. $ dpdk-pmdinfo.py -p $(which dpdk-testpmd) Traceback (most recent call last): File "/usr/bin/dpdk-pmdinfo.py", line 626, in main() File "/usr/bin/dpdk-pmdinfo.py", line 596, in main exit(scan_for_autoload_pmds(args[0])) TypeError: 'Namespace' object does not support indexing Fixes: 81255f27c65c ("usertools: replace optparse with argparse") Cc: stable@dpdk.org Signed-off-by: David Marchand --- usertools/dpdk-pmdinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py index 3381aa616c..40ef5cec6c 100755 --- a/usertools/dpdk-pmdinfo.py +++ b/usertools/dpdk-pmdinfo.py @@ -593,7 +593,7 @@ def main(stream=None): exit(1) if args.pdir: - exit(scan_for_autoload_pmds(args[0])) + exit(scan_for_autoload_pmds(args.elf_file)) ldlibpath = os.environ.get('LD_LIBRARY_PATH') if ldlibpath is None: -- 2.23.0