template printValuePacket for different packet sizes