HomeFreeBSD

loader: Avoid -Wpointer-to-int cast warnings for Arm and RISC-V

Description

loader: Avoid -Wpointer-to-int cast warnings for Arm and RISC-V

On RISC-V, Clang warns with:

cast to smaller integer type 'unsigned int' from 'void (*)(void *)'

Instead, use %p as the standard format specifier for printing pointers.
Whilst Arm's pointer size is the same as unsigned, it's still cleaner to
use the right thing there too.

Reviewed by: brooks (mentor), emaste
Approved by: brooks (mentor), emaste
Differential Revision: https://reviews.freebsd.org/D25718

Details

Provenance
jrtc27Authored on
Reviewer
brooks
Differential Revision
D25718: loader: Avoid -Wpointer-to-int cast warnings for Arm and RISC-V
Parents
rS363571: Add Goldfish RTC device driver for RISC-V
Branches
Unknown
Tags
Unknown