Use PRIx64 for printing offsets
Get arguments in the right order for copyout.  (Oops!)