Fix printing pointer address. Use %p to print as hex. Alternatively, can use %ld to print as decimal. The printed values agree.

%d was too short, this commit corrects it to %ld.