pkt-line: rename packet_write() to packet_write_fmt()