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 B052B43676; Tue, 5 Dec 2023 10:37:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D62F42D45; Tue, 5 Dec 2023 10:37:13 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id E28C8402D2 for ; Tue, 5 Dec 2023 10:37:11 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B59TjH6007242 for ; Tue, 5 Dec 2023 01:37:11 -0800 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ut0e6868d-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 05 Dec 2023 01:37:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f6W0n7OKAz8mbb3vjopfgaSDYo/iDnhmyD6UidFu2HzyCwXffoaP+GkMAJ8/lhsMGt0UWD3ITGI7JJ5Gu4oSoZjcYSyiStpuoE85Kb0PJ6p0qEGi65qCMAT1Eg2Y5mrKCO/UADulhb9bpVI/jcqYehDWDrIePUIpGcmWaPBhVOgZdouKBr72lQGPNr3W7++GasgfwgA4caiNiYWTQ7Y4gyB0Ezlw+oaHhM2XEVS56rMlGGD4COXKP6IylODAvc5SRy4tBcfYIckVaCzwcdCZkANajjjaeGUPgaRiYBXuKBm5u1EUpGjwQvOQq/oennnU8zoD5L9k2l5b6+OanmIkaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/yqe0IiYrQ9WpBNuuW3NymOg/l/gS6GtX2MTj5SqynA=; b=OVRpKO+qy2IHP+r3zlMXDqkfkerflUGbN6cYA6OZ6pBd1w5zv2ZUv2s0xL/rTfVgzEGuiF1H1MNPfRpvpdm023j2Zql3HGyQad1HzA5eTRD80bDP0ge2zm0BMYQ0FM9PhwuRoTqPVQ7P8Uq+mzc+Ab84YSOZrJB8mt9N1Msv/8DJBZ+Ka6KIWnJ4Vp0iIbQaqvUV9q5N7/BR8QcPZuT986hfjB+fSKDiJnFTY5bGrUHNHNu9giy5d4LiibyIqgrtI0suZL3bnrSUJ4DlE0xTvq83AAjoJP19zeIlfHujd02WObalXT85PjVztb25WX1hF3bBZuEAEeS9J/GVacbAeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/yqe0IiYrQ9WpBNuuW3NymOg/l/gS6GtX2MTj5SqynA=; b=QIPlVT5bOtCaE7h4S/GQOPyDJAH8p7Kemqyg5Lp5KTppJlw0A+Q0eewq3F5aPC/2s2kclxqYl8EH9e4ubheJoDJ5zcepB0IP7SH3ZFRvTh+0bPdhk+H53vIyiB5HgJ3XTCs27nYGY0OibDRA/4XpXLnGxzcY0GQg1WPTVuT1CZ8= Received: from BY3PR18MB4785.namprd18.prod.outlook.com (2603:10b6:a03:3cc::18) by DM4PR18MB4174.namprd18.prod.outlook.com (2603:10b6:5:391::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Tue, 5 Dec 2023 09:37:03 +0000 Received: from BY3PR18MB4785.namprd18.prod.outlook.com ([fe80::40bb:bb8b:9ee9:2a7]) by BY3PR18MB4785.namprd18.prod.outlook.com ([fe80::40bb:bb8b:9ee9:2a7%7]) with mapi id 15.20.7046.034; Tue, 5 Dec 2023 09:37:03 +0000 From: Jerin Jacob Kollanukkaran To: Tomasz Duszynski , "dev@dpdk.org" , Jakub Palider , Tomasz Duszynski CC: "stephen@networkplumber.org" Subject: RE: [PATCH] raw/cnxk_gpio: switch to dynamic logging Thread-Topic: [PATCH] raw/cnxk_gpio: switch to dynamic logging Thread-Index: AQHaDpogZBKjnJQMEkSzoiQITFKpCbCan97Q Date: Tue, 5 Dec 2023 09:37:03 +0000 Message-ID: References: <20231103210952.2447882-1-tduszynski@marvell.com> In-Reply-To: <20231103210952.2447882-1-tduszynski@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcamVyaW5qXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEy?= =?us-ascii?Q?OWUzNWJcbXNnc1xtc2ctZDY4OTAyZWYtOTM1MS0xMWVlLTg5MjgtMDBlMDRj?= =?us-ascii?Q?Y2QzMGRiXGFtZS10ZXN0XGQ2ODkwMmYxLTkzNTEtMTFlZS04OTI4LTAwZTA0?= =?us-ascii?Q?Y2NkMzBkYmJvZHkudHh0IiBzej0iMTYxNDgiIHQ9IjEzMzQ2MjQyNjIwNjEy?= =?us-ascii?Q?ODQ4MSIgaD0iQmNuRDYrUnBkWTFwaXo5SmU0VjVaWGhxSVJjPSIgaWQ9IiIg?= =?us-ascii?Q?Ymw9IjAiIGJ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dCbEFHd0FiQUJmQUhBQWNn?= =?us-ascii?Q?QnZBR29BWlFCakFIUUFYd0J1QUdFQWJRQmxBSE1BWHdCakFHOEFiZ0JtQUdr?= =?us-ascii?Q?QVpBQmxBRzRBZEFCcEFHRUFiQUJmQUcwQVlRQnlBSFlBWlFCc0FHd0FYd0J2?= =?us-ascii?Q?QUhJQVh3Qm5BRzhBYndCbkFHd0FaUUFBQUZvQUFBQUFBQUFBYlFCaEFISUFk?= =?us-ascii?Q?Z0JsQUd3QWJBQmZBSEFBY2dCdkFHb0FaUUJqQUhRQVh3QnVBR0VBYlFCbEFI?= =?us-ascii?Q?TUFYd0J5QUdVQWN3QjBBSElBYVFCakFIUUFaUUJrQUY4QWJRQmhBSElBZGdC?= =?us-ascii?Q?bEFHd0FiQUFBQUdnQUFBQUFBQUFBYlFCaEFISUFkZ0JsQUd3QWJBQmZBSEFB?= =?us-ascii?Q?Y2dCdkFHb0FaUUJqQUhRQVh3QnVBR0VBYlFCbEFITUFYd0J5QUdVQWN3QjBB?= =?us-ascii?Q?SElBYVFCakFIUUFaUUJrQUY4QWJRQmhBSElB?= x-dg-refsix: ZGdCbEFHd0FiQUJmQUc4QWNnQmZBR0VBY2dCdEFBQUFJZ0FBQUFBQUFBQnRBR0VBY2dCMkFHVUFiQUJzQUY4QWR3QnZBSElBWkFBQUFBPT0iLz48L21ldGE+ x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR18MB4785:EE_|DM4PR18MB4174:EE_ x-ms-office365-filtering-correlation-id: 4fe10de3-469a-41ce-0a14-08dbf575bd08 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: clY8XycOubuc4zRFd+eQgLEO16EYXhYyIwMG3SiSwVq4V4i6mMkPsEXn8d7O2j7OqnuahiBToBqdL0Oaudu0hbpxZuXtBxrbetWI7BKXuZlR7lHvlFtinmXBA54cGue0nyScQDab+pg12gdohiCaFuK/6BBCPr1o0zPKzz7b2Zq4G6TEpSekfjw1HkZW9rE+owlrPG+coUaCbFjK1UIDOwKqy8EHAIW6fgn89yl/VXvrSNt+lEaB8A693noobAFjOYxcY5ytRhnPucZ6omMS1C50viCOwBVaR8/ScLM1Y6222TOIaKFdN3W/70VmeVmlfOt3IdwjUpU6tBk/Xr+7b0mXr6TZc3eW82p9IU3GhX1Bk0Vgb/6xqWrO+AJGsUXjyfFJAqd8eE1xJ5quSMV5XdAlRRbcj7cvI1cvsUlW5DC85lwa6I9E50IrqblxKZyTuUxs908jKHKTA2hDMITYFAT/IPASWgyaOAnkVRt0EP7XerPr6JKzbSJJ6JGBmfkXAuG5Slx/ks7V9spNlhovx5+FE+OnuxwcvdSbSMELNA1ABp/e31FcQ3lzXhz27HoUzNN2ZhwLU7+2Rra45RlaVleEKxYgG8DOfc65l6NdxbCrZVybbenyCj/X7j87afycosTlLXmw6mvXehE6eyADAD7l+GLaCliSmYgYLvv3C3g= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR18MB4785.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(376002)(346002)(136003)(39860400002)(230273577357003)(230173577357003)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(9686003)(71200400001)(38100700002)(2906002)(5660300002)(86362001)(33656002)(41300700001)(122000001)(53546011)(26005)(8676002)(8936002)(6506007)(478600001)(52536014)(7696005)(66446008)(4326008)(66476007)(66556008)(76116006)(66946007)(6636002)(64756008)(110136005)(83380400001)(316002)(38070700009)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TWUU9Gb/XHjkMTHBd3oK5XZ+/k40CjS1ZIO1f2o/NhS31+HEy5fgs4HDj+PB?= =?us-ascii?Q?7vZb9mXRqCXB/QKTXe7M1CBPZyG2tqvdizd21cBBGu5ObkWGOJ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0TsSBiCqYAX6VsvO8rlpUAW8RdHFVAMx06uyUT?= =?us-ascii?Q?qNMu/yAVvHH66RRkDkby4giKBwa8JnCHT2EvxzeF7il+e49uuMJ4xIE+ILAC?= =?us-ascii?Q?IbQmvKam2e1E67pcLv0HHlYIiN8vblJ+p0gOoSoa16GQmD3Q1bAvPqOsB+KJ?= =?us-ascii?Q?tdwrfFHliog50d5MgBIHWCB59j/itSbTR9Hvc5TuH9rPlVg1KM+uuhuYgU27?= =?us-ascii?Q?G0fZjj6BlntZ1ob1nfkoc56DM4xREuwd2swN9D59j7UoD4X8NmIniRRDo0wE?= =?us-ascii?Q?v75/DlOZylWs3v78uSQYu5zSD5L+w7VRyHzbhD8aOaTCa7hQZe7rLd2CYuge?= =?us-ascii?Q?aZePFOFyZMTNkO0uN42DVeagOfTZ1kGpisbh5/E9jeLKN9XaihEP/7ywmWGO?= =?us-ascii?Q?97pk3IZ3YxqZ9oIevlMRDURDzQ7zbUtOENfSuU6LliVPl7sBF++Pdv8/5Azq?= =?us-ascii?Q?zgpqxDLH+cDRjMkHRWwZZKjnnZ4YitFrQ3d0qEyJVQIyX6/kQGLmQag3qEKl?= =?us-ascii?Q?3t/2sMe8gAnV1o2Vg2PYA9a2J3NnOiNyq8peVIHcThTCFVq7EpRGGPtc9Pdc?= =?us-ascii?Q?fNha2asQJPf4qnND3tix7VeApMJQKFB5+wzeA69A?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4785.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fe10de3-469a-41ce-0a14-08dbf575bd08 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2023 09:37:03.4412 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xQ6kvfAEwRDl+a9iogtnjWvMZml1DEP3Ady1sKoo+hB2UErzXUkSJqfjvjyHqjIKFoqb3JE/4HO8KYEKwez5OA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR18MB4174 X-Proofpoint-GUID: LE8mDrb-vucXtK8ZIX6B7iXn3adfQ0ay X-Proofpoint-ORIG-GUID: LE8mDrb-vucXtK8ZIX6B7iXn3adfQ0ay X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-05_04,2023-12-04_01,2023-05-22_02 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 > -----Original Message----- > From: Tomasz Duszynski > Sent: Saturday, November 4, 2023 2:40 AM > To: dev@dpdk.org; Jakub Palider ; Tomasz Duszynski > > Cc: Jerin Jacob Kollanukkaran ; > stephen@networkplumber.org > Subject: [PATCH] raw/cnxk_gpio: switch to dynamic logging >=20 > Dynamically allocated log type is a standard approach among all drivers. > Switch to it. >=20 > Signed-off-by: Tomasz Duszynski Applied to dpdk-next-net-mrvl/for-main. Thanks > --- > drivers/raw/cnxk_gpio/cnxk_gpio.c | 22 ++++++++++++---------- > drivers/raw/cnxk_gpio/cnxk_gpio.h | 7 +++++++ > drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c | 19 ++++++++----------- > 3 files changed, 27 insertions(+), 21 deletions(-) >=20 > diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c > b/drivers/raw/cnxk_gpio/cnxk_gpio.c > index 29c2506726..ebc914afcf 100644 > --- a/drivers/raw/cnxk_gpio/cnxk_gpio.c > +++ b/drivers/raw/cnxk_gpio/cnxk_gpio.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include >=20 > #include > @@ -213,13 +214,13 @@ cnxk_gpio_parse_allowlist(struct cnxk_gpiochip > *gpiochip, char *allowlist) > errno =3D 0; > val =3D strtol(token, NULL, 10); > if (errno) { > - RTE_LOG(ERR, PMD, "failed to parse %s\n", token); > + CNXK_GPIO_LOG(ERR, "failed to parse %s", token); > ret =3D -errno; > goto out; > } >=20 > if (val < 0 || val >=3D gpiochip->num_gpios) { > - RTE_LOG(ERR, PMD, "gpio%d out of 0-%d range\n", > val, > + CNXK_GPIO_LOG(ERR, "gpio%d out of 0-%d range", > val, > gpiochip->num_gpios - 1); > ret =3D -EINVAL; > goto out; > @@ -229,7 +230,7 @@ cnxk_gpio_parse_allowlist(struct cnxk_gpiochip > *gpiochip, char *allowlist) > if (list[i] !=3D val) > continue; >=20 > - RTE_LOG(WARNING, PMD, "gpio%d already > allowed\n", val); > + CNXK_GPIO_LOG(WARNING, "gpio%d already > allowed", val); > break; > } > if (i =3D=3D queue) > @@ -396,7 +397,7 @@ cnxk_gpio_queue_setup(struct rte_rawdev *dev, > uint16_t queue_id, > return ret; > } > } else { > - RTE_LOG(WARNING, PMD, "using existing gpio%d\n", gpio- > >num); > + CNXK_GPIO_LOG(WARNING, "using existing gpio%d", gpio- > >num); > } >=20 > gpiochip->gpios[num] =3D gpio; > @@ -645,7 +646,7 @@ cnxk_gpio_process_buf(struct cnxk_gpio *gpio, struct > rte_rawdev_buf *rbuf) >=20 > /* get rid of last response if any */ > if (gpio->rsp) { > - RTE_LOG(WARNING, PMD, "previous response got > overwritten\n"); > + CNXK_GPIO_LOG(WARNING, "previous response got > overwritten"); > rte_free(gpio->rsp); > } > gpio->rsp =3D rsp; > @@ -739,7 +740,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) > cnxk_gpio_format_name(name, sizeof(name)); > rawdev =3D rte_rawdev_pmd_allocate(name, sizeof(*gpiochip), > rte_socket_id()); > if (!rawdev) { > - RTE_LOG(ERR, PMD, "failed to allocate %s rawdev\n", name); > + CNXK_GPIO_LOG(ERR, "failed to allocate %s rawdev", name); > return -ENOMEM; > } >=20 > @@ -768,7 +769,7 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) > snprintf(buf, sizeof(buf), "%s/gpiochip%d/base", > CNXK_GPIO_CLASS_PATH, gpiochip->num); > ret =3D cnxk_gpio_read_attr_int(buf, &gpiochip->base); > if (ret) { > - RTE_LOG(ERR, PMD, "failed to read %s\n", buf); > + CNXK_GPIO_LOG(ERR, "failed to read %s", buf); > goto out; > } >=20 > @@ -776,20 +777,20 @@ cnxk_gpio_probe(struct rte_vdev_device *dev) > snprintf(buf, sizeof(buf), "%s/gpiochip%d/ngpio", > CNXK_GPIO_CLASS_PATH, gpiochip->num); > ret =3D cnxk_gpio_read_attr_int(buf, &gpiochip->num_gpios); > if (ret) { > - RTE_LOG(ERR, PMD, "failed to read %s\n", buf); > + CNXK_GPIO_LOG(ERR, "failed to read %s", buf); > goto out; > } > gpiochip->num_queues =3D gpiochip->num_gpios; >=20 > ret =3D cnxk_gpio_parse_allowlist(gpiochip, params->allowlist); > if (ret) { > - RTE_LOG(ERR, PMD, "failed to parse allowed gpios\n"); > + CNXK_GPIO_LOG(ERR, "failed to parse allowed gpios"); > goto out; > } >=20 > gpiochip->gpios =3D rte_calloc(NULL, gpiochip->num_gpios, sizeof(struct > cnxk_gpio *), 0); > if (!gpiochip->gpios) { > - RTE_LOG(ERR, PMD, "failed to allocate gpios memory\n"); > + CNXK_GPIO_LOG(ERR, "failed to allocate gpios memory"); > ret =3D -ENOMEM; > goto out; > } > @@ -849,3 +850,4 @@ RTE_PMD_REGISTER_VDEV(cnxk_gpio, cnxk_gpio_drv); > RTE_PMD_REGISTER_PARAM_STRING(cnxk_gpio, > "gpiochip=3D " > "allowlist=3D"); > +RTE_LOG_REGISTER_DEFAULT(cnxk_gpio_rawdev_logtype, WARNING); > diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.h > b/drivers/raw/cnxk_gpio/cnxk_gpio.h > index e62f78a760..a2a6b9469b 100644 > --- a/drivers/raw/cnxk_gpio/cnxk_gpio.h > +++ b/drivers/raw/cnxk_gpio/cnxk_gpio.h > @@ -5,6 +5,13 @@ > #ifndef _CNXK_GPIO_H_ > #define _CNXK_GPIO_H_ >=20 > +#include > + > +extern int cnxk_gpio_rawdev_logtype; > + > +#define CNXK_GPIO_LOG(level, fmt, args...) \ > + rte_log(RTE_LOG_ ## level, cnxk_gpio_rawdev_logtype, "%s(): " fmt > +"\n", __func__, ##args) > + > struct cnxk_gpiochip; >=20 > struct cnxk_gpio { > diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c > b/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c > index 10742b5dc4..a462871c4a 100644 > --- a/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c > +++ b/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c > @@ -56,7 +56,7 @@ cnxk_gpio_read_attr(char *attr, char *val) >=20 > #define CNXK_GPIO_ERR_STR(err, str, ...) do { = \ > if (err) { = \ > - RTE_LOG(ERR, PMD, "%s:%d: " str " (%d)\n", __func__, > __LINE__, \ > + CNXK_GPIO_LOG(ERR, "%s:%d: " str " (%d)", __func__, > __LINE__, \ > ##__VA_ARGS__, err); \ > goto out; \ > } = \ > @@ -330,30 +330,28 @@ cnxk_gpio_selftest(uint16_t dev_id) > for (i =3D 0; i < queues; i++) { > ret =3D rte_rawdev_queue_conf_get(dev_id, i, &conf, > sizeof(conf)); > if (ret) { > - RTE_LOG(ERR, PMD, > - "failed to read queue configuration (%d)\n", > - ret); > + CNXK_GPIO_LOG(ERR, "failed to read queue > configuration (%d)", ret); > goto out; > } >=20 > - RTE_LOG(INFO, PMD, "testing queue%d (gpio%d)\n", i, > conf.gpio); > + CNXK_GPIO_LOG(INFO, "testing queue%d (gpio%d)", i, > conf.gpio); >=20 > if (conf.size !=3D 1) { > - RTE_LOG(ERR, PMD, "wrong queue size received\n"); > + CNXK_GPIO_LOG(ERR, "wrong queue size received\n"); > ret =3D -EIO; > goto out; > } >=20 > ret =3D rte_rawdev_queue_setup(dev_id, i, NULL, 0); > if (ret) { > - RTE_LOG(ERR, PMD, "failed to setup queue (%d)\n", > ret); > + CNXK_GPIO_LOG(ERR, "failed to setup queue (%d)", > ret); > goto out; > } >=20 > gpio =3D gpiochip->gpios[conf.gpio]; > snprintf(buf, sizeof(buf), CNXK_GPIO_PATH_FMT, gpio->num); > if (!cnxk_gpio_attr_exists(buf)) { > - RTE_LOG(ERR, PMD, "%s does not exist\n", buf); > + CNXK_GPIO_LOG(ERR, "%s does not exist", buf); > ret =3D -ENOENT; > goto release; > } > @@ -371,13 +369,12 @@ cnxk_gpio_selftest(uint16_t dev_id) > ret2 =3D ret; > ret =3D rte_rawdev_queue_release(dev_id, i); > if (ret) { > - RTE_LOG(ERR, PMD, "failed to release queue (%d)\n", > - ret); > + CNXK_GPIO_LOG(ERR, "failed to release queue (%d)", > ret); > break; > } >=20 > if (cnxk_gpio_attr_exists(buf)) { > - RTE_LOG(ERR, PMD, "%s still exists\n", buf); > + CNXK_GPIO_LOG(ERR, "%s still exists", buf); > ret =3D -EIO; > break; > } > -- > 2.34.1