open-power / libekb_p10

Apache License 2.0
0 stars 12 forks source link

fapi2: Use %p to print target pointer #21

Closed shenki closed 1 year ago

shenki commented 1 year ago

GCC 13 warns about a the wrong format specifier when building for some platforms:

./hwpf/fapi2/include/plat/target.H:449:57: warning: format '%lX' expects argument of type 'long unsigned int', but argument 4 has type 'pdbg_target*' [-Wformat=]

Use %p to print a pointer value, as this will work on arm/x86/ppc64 no matter the size of a pointer.

Fixes https://github.com/open-power/pub-ekb/issues/2