Skip to content

Commit 731ca4a

Browse files
aloktiwamstsirkin
authored andcommitted
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: 67f27b8 ("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>
1 parent f3f64c2 commit 731ca4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/vdpa/pds/vdpa_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int pds_vdpa_register_event_handler(struct pds_vdpa_device *pdsv)
5151
err = pdsc_register_notify(nb);
5252
if (err) {
5353
nb->notifier_call = NULL;
54-
dev_err(dev, "failed to register pds event handler: %ps\n",
54+
dev_err(dev, "failed to register pds event handler: %pe\n",
5555
ERR_PTR(err));
5656
return -EINVAL;
5757
}

0 commit comments

Comments
 (0)