]> Gentwo Git Trees - linux/.git/commitdiff
vdpa/pds: use %pe for ERR_PTR() in event handler registration
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 18 Oct 2025 17:46:46 +0000 (10:46 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Nov 2025 07:03:07 +0000 (02:03 -0500)
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@oracle.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251018174705.1511982-1-alok.a.tiwari@oracle.com>

drivers/vdpa/pds/vdpa_dev.c

index 36f61cc96e2110488b6aa4d2a500569dc0191ef4..43426bd971acc99981f1f77820ebf28610abfa64 100644 (file)
@@ -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;
                }