Apparently, %p only accepts void*, and not any pointer type. Still better than casting a pointer to uint64_t.