]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ntb: Use uintmax_t casts and %j to print physical addresses.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Sep 2022 20:56:31 +0000 (13:56 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Sep 2022 20:56:31 +0000 (13:56 -0700)
commit124e46735e07037afafbf0caa097faafb09c7329
tree19b9dbc382ea0e023821a98f117b337e3869656f
parent9bbed3f615f15017ea53a86721686c790d8d8b68
ntb: Use uintmax_t casts and %j to print physical addresses.

This fixes -Wint-to-pointer-cast errors with GCC when compiling on
i386 where physical addresses are not the same size as pointers.

Reviewed by: mav, imp
Differential Revision: https://reviews.freebsd.org/D36751
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
sys/dev/ntb/ntb_hw/ntb_hw_intel.c