snapshot: use %p for printing pointers