From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id AFEE042B8E;
	Wed, 24 May 2023 17:00:06 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 3973640156;
	Wed, 24 May 2023 17:00:06 +0200 (CEST)
Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31])
 by mails.dpdk.org (Postfix) with ESMTP id 1A98E40689;
 Tue, 23 May 2023 16:39:04 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1684852745; x=1716388745;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=rSxMBU3NxDbo6n+kxAsDEwNZrXw8yxBQiw1FloFMEKI=;
 b=W9M83SN91LOVLHzI9rA5Dm6Mvzckx6QMm5I8kCR80rlPIG2VXUVXw4ES
 13UA0lRJ/OrMA+QTyw3WvK0ViN8dlqIa+zI7Fx4ItNc8X4bHHdQHY0pDp
 LhYDoBSH9j2UJcR+ysOn2w6CpHOy2MmpBmWELmP7uTTbmIABmlFZbpHpE
 2GxgyyCDRJCcDc3vy1Am9ZCjujaWpO+w4DMRL6E3Hl1hWlHW7zEp04Vcx
 ZPug8ylh050xXpNzhRpQruIOh56/NU/HqIlJt1YjEIuMObUr/0Y+UG79A
 b5Lx5pqNP7snVa17+QmkZP8bPnhOmVijIwDRlZoYy3Cems7oRwRckKoPc w==;
X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="416716763"
X-IronPort-AV: E=Sophos;i="6.00,186,1681196400"; d="scan'208";a="416716763"
Received: from fmsmga004.fm.intel.com ([10.253.24.48])
 by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 23 May 2023 07:39:03 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="773855534"
X-IronPort-AV: E=Sophos;i="6.00,186,1681196400"; d="scan'208";a="773855534"
Received: from silpixa00400868.ir.intel.com ([10.243.23.113])
 by fmsmga004.fm.intel.com with ESMTP; 23 May 2023 07:39:00 -0700
From: Samina Arshad <samina.arshad@intel.com>
To: y@dpdk.org
Cc: ciara.power@intel.com, dev@dpdk.org, tadhg.kearney@intel.com,
 stable@dpdk.org, Samina Arshad <samina.arshad@intel.com>,
 lihuisong@huawei.com
Subject: [PATCH v2] usertools/telemetry: fix unused parameter
Date: Tue, 23 May 2023 14:38:55 +0000
Message-Id: <20230523143855.218984-1-samina.arshad@intel.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <20230518134730.68538-1-samina.arshad@intel.com>
References: <20230518134730.68538-1-samina.arshad@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Mailman-Approved-At: Wed, 24 May 2023 17:00:04 +0200
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

This bug fix ensures that the runtime socket path is generated
correctly, based on the user-specified file_prefix value,
resolving the issue that occurred in the previous implementation.

Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
Cc: lihuisong@huawei.com
Cc: stable@dpdk.org

Signed-off-by: Samina Arshad <samina.arshad@intel.com>
---
v2:
Made changes for previous commit to be efficient. Removed
"args" from "args.file_prefix".
---
---
 usertools/dpdk-telemetry-client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py
index d6718ca5b0..e3bb1c9ee0 100755
--- a/usertools/dpdk-telemetry-client.py
+++ b/usertools/dpdk-telemetry-client.py
@@ -55,8 +55,8 @@ def getFilepath(self, file_path):
         # Gets arguments from Command-Line and assigns to instance of client
         self.file_path = file_path
 
-    def setRunpath(self, file_path):
-        self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
+    def setRunpath(self, file_prefix):
+        self.run_path = os.path.join(get_dpdk_runtime_dir(file_prefix),
                                      RUNTIME_SOCKET_NAME)
 
     def register(self):
-- 
2.25.1