irdma(4): Fix previous commit that broke build on amd64

Changing the printf specifier to %p fixed the build on powerpc64, but it
actually broke the amd64 build since the type of the value to be printed
is uint64_t on amd64.

Instead, keep the new %p specifier but cast the printed argument to a
uintptr_t and then to a void * in order for it to be valid type for
%p.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>

Reported by:	jrtc27@
MFC after:	5 days
MFC-with:	e602a30bb9
Sponsored by:	Intel Corporation
This commit is contained in:
Eric Joyner 2022-05-24 23:52:57 -07:00
parent e602a30bb9
commit a6e275af46
No known key found for this signature in database
GPG Key ID: 96F0C6FD61E05DE3

View File

@ -501,7 +501,7 @@ irdma_probe(struct ice_rdma_peer *peer)
irdma_pr_info("probe: irdma-%s peer=%p, peer->pf_id=%d, peer->ifp=%p, peer->ifp->if_dunit=%d, peer->pci_mem->r_bustag=%p\n",
irdma_driver_version, peer, peer->pf_id, peer->ifp,
pf_if_d(peer), peer->pci_mem->r_bustag);
pf_if_d(peer), (void *)(uintptr_t)peer->pci_mem->r_bustag);
hdl = irdma_find_handler(peer);
if (hdl)