[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251018174705.1511982-1-alok.a.tiwari@oracle.com>
Date: Sat, 18 Oct 2025 10:46:46 -0700
From: Alok Tiwari <alok.a.tiwari@...cle.com>
To: shannon.nelson@....com, brett.creeley@....com, eperezma@...hat.com,
mst@...hat.com, jasowang@...hat.com, xuanzhuo@...ux.alibaba.com,
virtualization@...ts.linux.dev, alok.a.tiwari@...cle.com
Cc: alok.a.tiwarilinux@...il.com, linux-kernel@...r.kernel.org
Subject: [PATCH] vdpa/pds: use %pe for ERR_PTR() in event handler registration
Use %pe instead of %ps when printing ERR_PTR() values. %ps is intended
for string pointers, while %pe correctly prints symbolic error names
for error pointers returned via ERR_PTR().
This shows the returned error value more clearly.
Fixes: 67f27b8b3a34 ("pds_vdpa: subscribe to the pds_core events")
Signed-off-by: Alok Tiwari <alok.a.tiwari@...cle.com>
---
drivers/vdpa/pds/vdpa_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vdpa/pds/vdpa_dev.c b/drivers/vdpa/pds/vdpa_dev.c
index 36f61cc96e21..43426bd971ac 100644
--- a/drivers/vdpa/pds/vdpa_dev.c
+++ b/drivers/vdpa/pds/vdpa_dev.c
@@ -51,7 +51,7 @@ static int pds_vdpa_register_event_handler(struct pds_vdpa_device *pdsv)
err = pdsc_register_notify(nb);
if (err) {
nb->notifier_call = NULL;
- dev_err(dev, "failed to register pds event handler: %ps\n",
+ dev_err(dev, "failed to register pds event handler: %pe\n",
ERR_PTR(err));
return -EINVAL;
}
--
2.50.1
Powered by blists - more mailing lists