Refactor printing arguments to the xdr routines