HomeFreeBSD

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

Description

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: e602a30bb9fc7ee041a0e629d0fd2db7933ffa32
Sponsored by: Intel Corporation

Details

Provenance
erjAuthored on May 25 2022, 6:52 AM
Differential Revision
D34690: RDMA driver for Intel(R) Ethernet Controller E810
Parents
rGe602a30bb9fc: irdma(4): Fix compile error on powerpc64
Branches
Unknown
Tags
Unknown