LLP64: adjust calls to printf-like functions with pointer arguments
For the benefit of LLP64 platforms, do not cast to long when printing a
pointer, and use %p instead of %lx. If casting is required, cast to
a pointer-sized unsigned integer, not signed long.
Thanks to Anton Kovalenko.