Print packet contents from test code.