]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:10 +0000 (13:55 +0100)
commit7bc42097e972998c307abf4d574adebb5f3d1394
tree7c909df22982499dc9073349157bdec2de3996ef
parent0cea55e0272cb8135d27f6a31fec1f9adf58d0e4
vdpa/pds: use %pe for ERR_PTR() in event handler registration

[ Upstream commit 731ca4a4cc52fd5c5ae309edcfd2d7e54ece3321 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/pds/vdpa_dev.c